ChainRec overview
Added in v2.0.0
Table of contents
model
ChainRec (interface)
Signature
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 v2.0.0
ChainRec1 (interface)
Signature
export interface ChainRec1<F extends URIS> extends Chain1<F> {
readonly chainRec: <A, B>(a: A, f: (a: A) => Kind<F, Either<A, B>>) => Kind<F, B>
}
Added in v2.0.0
ChainRec2 (interface)
Signature
export interface ChainRec2<F extends URIS2> extends Chain2<F> {
readonly chainRec: <E, A, B>(a: A, f: (a: A) => Kind2<F, E, Either<A, B>>) => Kind2<F, E, B>
}
Added in v2.0.0
ChainRec2C (interface)
Signature
export interface ChainRec2C<F extends URIS2, E> extends Chain2C<F, E> {
readonly chainRec: <A, B>(a: A, f: (a: A) => Kind2<F, E, Either<A, B>>) => Kind2<F, E, B>
}
Added in v2.0.0
ChainRec3 (interface)
Signature
export interface ChainRec3<F extends URIS3> extends Chain3<F> {
readonly chainRec: <R, E, A, B>(a: A, f: (a: A) => Kind3<F, R, E, Either<A, B>>) => Kind3<F, R, E, B>
}
Added in v2.0.0
ChainRec3C (interface)
Signature
export interface ChainRec3C<F extends URIS3, E> extends Chain3C<F, E> {
readonly chainRec: <R, A, B>(a: A, f: (a: A) => Kind3<F, R, E, Either<A, B>>) => Kind3<F, R, E, B>
}
Added in v2.10.0
ChainRec4 (interface)
Signature
export interface ChainRec4<F extends URIS4> extends Chain4<F> {
readonly chainRec: <S, R, E, A, B>(a: A, f: (a: A) => Kind4<F, S, R, E, Either<A, B>>) => Kind4<F, S, R, E, B>
}
Added in v2.10.0
utils
tailRec
Signature
export declare const tailRec: <A, B>(startWith: A, f: (a: A) => Either<A, B>) => B
Added in v2.0.0