UNPKG

@thi.ng/transducers

Version:

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

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