UNPKG

@thi.ng/associative

Version:

ES Map/Set-compatible implementations with customizable equality semantics & supporting operations

10 lines 400 B
import type { Pair } from "@thi.ng/api"; /** * Adds elements from `src` iterable to `coll` (Map or Set) and then returns it. * * @param coll - target collection * @param src - source collection */ export declare function into<K, V>(coll: Map<K, V>, src: Iterable<Pair<K, V>>): Map<K, V>; export declare function into<T>(coll: Set<T>, src: Iterable<T>): Set<T>; //# sourceMappingURL=into.d.ts.map