import { constTrue } from "@tsplus/stdlib/data/Function" /** * A sink that effectfully folds its input chunks with the provided function * and initial state. `f` must preserve chunking-invariance. * * @tsplus static effect/core/stream/Sink.Ops foldLeftChunksEffect */ export function foldLeftChunksEffect( z: S, f: (s: S, input: Chunk) => Effect ): Sink { return Sink.foldChunksEffect(z, constTrue, f).dropLeftover }