@rimbu/multimap
Version:
An immutable Map where each key can have multiple values
13 lines • 608 B
JavaScript
import { MultiMapContext, } from '@rimbu/multimap/custom';
/**
* The default `MultiMap` creators and context.
*
* Use this exported value to create and work with immutable `MultiMap` instances.
* See the [MultiMap documentation](https://rimbu.org/docs/collections/multimap) and the [MultiMap API documentation](https://rimbu.org/api/rimbu/multimap/MultiMap/interface).
*/
export const MultiMap = Object.freeze({
createContext(options) {
return Object.freeze(new MultiMapContext('MultiMap', options.keyMapContext, options.keyMapValuesContext));
},
});
//# sourceMappingURL=generic.mjs.map