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