// ets_tracing: off import type * as CK from "../../../Collections/Immutable/Chunk/index.js" import type * as C from "./core.js" import * as FoldChunks from "./foldChunks.js" /** * A sink that folds its input chunks with the provided function and initial state. * `f` must preserve chunking-invariance. */ export function foldLeftChunks( z: S, f: (s: S, chunk: CK.Chunk) => S ): C.Sink { return FoldChunks.foldChunks(z, (_) => true, f) }