← Back

Source

ChainRec

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 (type class)

tailRec

<A, B>(f: (a: A) => Either<A, B>, a: A): B

Added in v1.0.0 (function)