@rimbu/multimap
Version:
An immutable Map where each key can have multiple values
15 lines • 616 B
JavaScript
import { HashSet } from '@rimbu/hashed/set';
import { SortedMap } from '@rimbu/sorted/map';
import { MultiMapContext, } from '@rimbu/multimap/custom';
function createContext(options) {
return Object.freeze(new MultiMapContext('SortedMultiMapHashValue', options?.keyMapContext ?? SortedMap.defaultContext(), options?.keyMapValuesContext ?? HashSet.defaultContext()));
}
const _defaultContext = createContext();
export const SortedMultiMapHashValue = Object.freeze({
..._defaultContext,
createContext,
defaultContext() {
return _defaultContext;
},
});
//# sourceMappingURL=interface.mjs.map