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