Package: effect
Module: Sink
A sink that folds its inputs with the provided function, termination predicate and initial state.
Signature
declare const fold: <S, In>(s: S, contFn: Predicate<S>, f: (s: S, input: In) => S) => Sink<S, In, In>
Since v2.0.0