UNPKG

@rimbu/multimap

Version:

An immutable Map where each key can have multiple values

15 lines 616 B
import { HashMap } from '@rimbu/hashed/map'; import { SortedSet } from '@rimbu/sorted/set'; import { MultiMapContext, } from '@rimbu/multimap/custom'; function createContext(options) { return Object.freeze(new MultiMapContext('HashMultiMapSortedValue', options?.keyMapContext ?? HashMap.defaultContext(), options?.keyMapValuesContext ?? SortedSet.defaultContext())); } const _defaultContext = createContext(); export const HashMultiMapSortedValue = Object.freeze({ ..._defaultContext, createContext, defaultContext() { return _defaultContext; }, }); //# sourceMappingURL=interface.mjs.map