UNPKG

@thi.ng/transducers

Version:

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

4 lines 245 B
import type { Reducer } from "./api.js"; export declare function reductions<A, B>(rfn: Reducer<A, B>): Reducer<A, B[]>; export declare function reductions<A, B>(rfn: Reducer<A, B>, src: Iterable<A>): B[]; //# sourceMappingURL=reductions.d.ts.map