UNPKG

@thi.ng/transducers

Version:

Collection of ~170 lightweight, composable transducers, reducers, generators, iterators for functional data transformations

10 lines 320 B
import type { Reducer } from "./api.js"; /** * Reducer which collects inputs into an array. * * @remarks * Also see {@link pushCopy}, {@link pushKeys}, {@link pushSort}. */ export declare function push<T>(): Reducer<T, T[]>; export declare function push<T>(src: Iterable<T>): T[]; //# sourceMappingURL=push.d.ts.map