effect-io-ai

Package: effect
Module: Sink

Sink.reduceEffect

A sink that reduces its inputs using the provided effectful function f starting from the specified initial state.

Signature

declare const reduceEffect: <S, In, E, R>(initial: LazyArg<S>, f: (s: S, input: In) => Effect.Effect<S, E, R>) => Sink<S, In, never, E, R>

Source

Since v4.0.0