effect-io-ai

Package: effect
Module: Sink

Sink.foldLeftChunks

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

Signature

declare const foldLeftChunks: <S, In>(s: S, f: (s: S, chunk: Chunk.Chunk<In>) => S) => Sink<S, In>

Source

Since v2.0.0