effect-io-ai

Package: effect
Module: Sink

Sink.foldEffect

A sink that effectfully folds its inputs with the provided function, termination predicate and initial state.

Signature

declare const foldEffect: <S, In, E, R>(s: S, contFn: Predicate<S>, f: (s: S, input: In) => Effect.Effect<S, E, R>) => Sink<S, In, In, E, R>

Source

Since v2.0.0