import type * as P from "@principia/prelude"; import type { NonEmptyArray, URI, V } from "./model"; /** * ```haskell * ap_ :: Apply f => (f (a -> b), f a) -> f b * ``` * * Apply a function to an argument under a type constructor * * @category Apply * @since 1.0.0 */ export declare const ap_: (fab: NonEmptyArray<(a: A) => B>, fa: NonEmptyArray) => NonEmptyArray; /** * ```haskell * ap :: Apply f => f a -> f (a -> b) -> f b * ``` * * Apply a function to an argument under a type constructor * * @category Apply * @since 1.0.0 */ export declare const ap: (fa: NonEmptyArray) => (fab: NonEmptyArray<(a: A) => B>) => NonEmptyArray; /** * ```haskell * apFirst_ :: Apply f => (f a, f b) -> f a * ``` * * Combine two effectful actions, keeping only the result of the first * * @category Apply * @since 1.0.0 */ export declare const apFirst_: (fa: NonEmptyArray, fb: NonEmptyArray) => NonEmptyArray; /** * ```haskell * apFirst :: Apply f => f b -> f a -> f a * ``` * * Combine two effectful actions, keeping only the result of the first * * @category Apply * @since 1.0.0 */ export declare const apFirst: (fb: NonEmptyArray) => (fa: NonEmptyArray) => NonEmptyArray; /** * ```haskell * apSecond_ :: Apply f => (f a, f b) -> f b * ``` * * Combine two effectful actions, keeping only the result of the second * * @category Apply * @since 1.0.0 */ export declare const apSecond_: (fa: NonEmptyArray, fb: NonEmptyArray) => NonEmptyArray; /** * ```haskell * apSecond :: Apply f => f b -> f a -> f b * ``` * * Combine two effectful actions, keeping only the result of the second * * @category Apply * @since 1.0.0 */ export declare const apSecond: (fb: NonEmptyArray) => (fa: NonEmptyArray) => NonEmptyArray; export declare const zipWith_: ( fa: NonEmptyArray, fb: NonEmptyArray, f: (a: A, b: B) => C ) => NonEmptyArray; export declare const zipWith: ( fb: NonEmptyArray, f: (a: A, b: B) => C ) => (fa: NonEmptyArray) => NonEmptyArray; export declare const Apply: P.Apply<[URI], V>; //# sourceMappingURL=apply.d.ts.map