effect-io-ai

Package: effect
Module: Sink

Sink.foldLeftChunksEffect

A sink that effectfully folds its input chunks with the provided function and initial state. f must preserve chunking-invariance.

Signature

declare const foldLeftChunksEffect: <S, In, E, R>(s: S, f: (s: S, chunk: Chunk.Chunk<In>) => Effect.Effect<S, E, R>) => Sink<S, In, never, E, R>

Source

Since v2.0.0