declare type Identity = (x: T) => T; /** * I * @haskell id * @use identity * @signature identity :: a -> a */ export declare const identity: Identity; declare type Fn = (f: Fn) => T; declare type Omega = (f: Fn) => T; /** * O, omega * @use self-application * @signature O :: f -> f */ export declare const omega: Omega; declare type Constant = (x: T) => (...args: any[]) => T; /** * K, Kestrel * @haskell const * @use true, first, const * @signature constant :: a -> b -> a */ export declare const constant: Constant; export declare const always: Constant; declare type Kite = (...args: any[]) => (b: T) => typeof b; /** * KI, Kite = KI = CK * @haskell const id * @derived constant(identity) * @use false, second * @signature kite :: a -> b -> b */ export declare const kite: Kite; /** * C, Cardinal * @haskell flip * @use reverse arguments * @signature flip :: (a -> b -> c) -> b -> a -> c */ export declare const flip: (...args: any[]) => any; export declare const flipS: (...args: any[]) => any; /** * @signature apply :: (a -> b) -> a -> b */ export declare const apply: (...args: any[]) => any; /** * T, Thrush = CI * @haskell flip id * @use hold an argument * @signature thrush :: a -> (a -> b) -> b */ export declare const applyTo: (...args: any[]) => any; export declare const thrush: (...args: any[]) => any; /** * V, Vireo = BCT * @haskell flip . flip id * @use hold a pair of args * @signature vireo :: a -> b -> (a -> b -> c) -> c */ export declare const vireo: (...args: any[]) => any; export declare const vireoS: (...args: any[]) => any; /** * W, join * @signature duplication :: (a -> a -> b) -> a -> b */ export declare const duplication: (...args: any[]) => any; export declare const duplicationS: (...args: any[]) => any; /** * @signature substitution :: (a -> b -> c) -> (a - b) -> a -> c */ export declare const substitution: (...args: any[]) => any; export declare const substitutionS: (...args: any[]) => any; /** * @signature sustitution2 :: (a -> b -> c) -> (b -> a) -> b -> c */ export declare const substitution2: (...args: any[]) => any; export declare const substitution2S: (...args: any[]) => any; /** * @signature converge :: (b -> c -> d) -> (a -> b) -> (a -> c) -> a -> d */ export declare const converge: (...args: any[]) => any; export declare const convergeS: (...args: any[]) => any; /** * @signature compose2 :: (c -> d -> e) -> (a -> c) -> (b -> d) -> a -> b -> e */ export declare const compose2: (...args: any[]) => any; export declare const compose2S: (...args: any[]) => any; /** * on * @signature psi :: (b → b → c) → (a → b) → a → a → c */ export declare const psi: (...args: any[]) => any; export declare const psiS: (...args: any[]) => any; /** * B, Bluebird * @haskell (.) * @use composition * @signature composeB :: (b -> c) -> (a -> b) -> a -> c */ export declare const composeB: (...args: any[]) => any; export declare const composeBS: (...args: any[]) => any; declare type ZCombinator = any>(g: (arg: (...args: Parameters) => ReturnType) => Y) => (...args: Parameters) => ReturnType; /** * Z * @description Y Combinator's variation in JavaScript * @signature Z :: ((a -> b) -> a -> b) -> a -> b * @example * ```ts * const f = g => n => n === 0 ? 1 : n * g(n - 1) * console.log(Z(f)(5)) * ``` */ export declare const Z: ZCombinator; export {}; //# sourceMappingURL=combinators.d.ts.map