@thi.ng/transducers
Version:
Collection of ~170 lightweight, composable transducers, reducers, generators, iterators for functional data transformations
10 lines • 346 B
TypeScript
import type { Reducer } from "./api.js";
/**
* Reducer. Special version of {@link push}, which immutably appends inputs to
* an array, yielding a new array for each reduction step.
*
* @remarks
* Also see {@link pushKeys}, {@link pushSort}.
*/
export declare const pushCopy: <T>() => Reducer<T, T[]>;
//# sourceMappingURL=push-copy.d.ts.map