id | title |
---|---|
ChainRec |
Module ChainRec |
Signature (type class) Source
export interface ChainRec<F> extends Chain<F> {
readonly chainRec: <A, B>(a: A, f: (a: A) => HKT<F, Either<A, B>>) => HKT<F, B>
}
Added in v1.0.0
Signature (function) Source
export const tailRec = <A, B>(f: (a: A) => Either<A, B>, a: A): B => { ... }
Added in v1.0.0