@thi.ng/transducers
Version:
Collection of ~170 lightweight, composable transducers, reducers, generators, iterators for functional data transformations
14 lines • 405 B
TypeScript
import type { Fn } from "@thi.ng/api";
import type { ReductionFn } from "../api.js";
/**
* Helper HOF yielding a buffer drain completion function for some
* transducers.
*
* @param buf -
* @param complete -
* @param reduce -
*
* @internal
*/
export declare const __drain: <T>(buf: T[], complete: Fn<any, any>, reduce: ReductionFn<T, any>) => (acc: T[]) => any;
//# sourceMappingURL=drain.d.ts.map