UNPKG

@thi.ng/transducers

Version:

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

9 lines 403 B
import type { Pair } from "@thi.ng/api"; import type { Reducer } from "./api.js"; /** * Reducer accepting key-value pairs / tuples and transforming / adding * them to an ES6 Map. Also see {@link assocObj}. */ export declare function assocMap<A, B>(): Reducer<Pair<A, B>, Map<A, B>>; export declare function assocMap<A, B>(src: Iterable<Pair<A, B>>): Map<A, B>; //# sourceMappingURL=assoc-map.d.ts.map