id | title |
---|---|
function |
Module function |
For use with phantom fields
Signature (constant) Source
export const phantom: any = ...
Added in v1.0.0
Signature (constant) Source
export const unsafeCoerce: <A, B>(a: A) => B = ...
Added in v1.0.0
Signature (function) Source
export const and = <A>(p1: Predicate<A>, p2: Predicate<A>): Predicate<A> => { ... }
Added in v1.0.0
Applies a function to an argument ($)
Signature (function) Source
export const apply = <A, B>(f: (a: A) => B) => (a: A): B => { ... }
Added in v1.0.0
Applies an argument to a function (#)
Signature (function) Source
export const applyFlipped = <A>(a: A) => <B>(f: (a: A) => B): B => { ... }
Added in v1.0.0
Signature (function) Source
export function compose(...fns: Array<Function>): Function { ... }
Added in v1.0.0
Signature (function) Source
export const concat = <A>(x: Array<A>, y: Array<A>): Array<A> => { ... }
Added in v1.0.0
A thunk that returns always false
Signature (function) Source
export const constFalse = (): boolean => { ... }
Added in v1.0.0
A thunk that returns always the identity
function.
For use with applySecond
methods.
Signature (function) Source
export const constIdentity = (): (<A>(a: A) => A) => { ... }
Added in v1.5.0
A thunk that returns always null
Signature (function) Source
export const constNull = (): null => { ... }
Added in v1.0.0
A thunk that returns always true
Signature (function) Source
export const constTrue = (): boolean => { ... }
Added in v1.0.0
A thunk that returns always undefined
Signature (function) Source
export const constUndefined = (): undefined => { ... }
Added in v1.0.0
A thunk that returns always void
Signature (function) Source
export const constVoid = (): void => { ... }
Added in v1.14.0
Signature (function) Source
export const constant = <A>(a: A): Lazy<A> => { ... }
Added in v1.0.0
Signature (function) Source
export function curried(f: Function, n: number, acc: Array<any>) { ... }
Added in v1.0.0
Signature (function) Source
export function curry(f: Function) { ... }
Added in v1.0.0
Signature (function) Source
export const decrement = (n: number): number => { ... }
Added in v1.9.0
Flips the order of the arguments to a function of two arguments.
Signature (function) Source
export const flip = <A, B, C>(f: Curried2<A, B, C>): Curried2<B, A, C> => { ... }
Added in v1.0.0
Signature (function) Source
export const identity = <A>(a: A): A => { ... }
Added in v1.0.0
Signature (function) Source
export const increment = (n: number): number => { ... }
Added in v1.9.0
Signature (function) Source
export const not = <A>(predicate: Predicate<A>): Predicate<A> => { ... }
Added in v1.0.0
The on
function is used to change the domain of a binary operator.
Signature (function) Source
export const on = <B, C>(op: BinaryOperation<B, C>) => <A>(f: (a: A) => B): BinaryOperation<A, C> => { ... }
Added in v1.0.0
Signature (function) Source
export function or<A>(p1: Predicate<A>, p2: Predicate<A>): Predicate<A> { ... }
Added in v1.0.0
Signature (function) Source
export function pipe(...fns: Array<Function>): Function { ... }
Added in v1.0.0
Signature (function) Source
export const toString = (x: any): string => { ... }
Added in v1.0.0
Signature (function) Source
export const tuple = <A, B>(a: A, b: B): [A, B] => { ... }
Added in v1.0.0
Signature (function) Source
export const tupleCurried = <A>(a: A) => <B>(b: B): [A, B] => { ... }
Added in v1.0.0