@effect-ts/system
Version:
Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.
10 lines • 637 B
TypeScript
import type * as CK from "../../../Collections/Immutable/Chunk/index.js";
import type { Predicate } from "../../../Function/index.js";
import * as C from "./core.js";
/**
* A sink that folds its input chunks with the provided function, termination predicate and initial state.
* `contFn` condition is checked only for the initial value and at the end of processing of each chunk.
* `f` and `contFn` must preserve chunking-invariance.
*/
export declare function foldChunks<Err, In, S>(z: S, contFn: Predicate<S>, f: (s: S, chunk: CK.Chunk<In>) => S): C.Sink<unknown, Err, In, Err, unknown, S>;
//# sourceMappingURL=foldChunks.d.ts.map