UNPKG

@rimbu/multimap

Version:

An immutable Map where each key can have multiple values

22 lines 1.38 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HashMultiMapSortedValue = void 0; var tslib_1 = require("tslib"); var map_1 = require("@rimbu/hashed/map"); var set_1 = require("@rimbu/sorted/set"); var custom_1 = require("@rimbu/multimap/custom"); function createContext(options) { var _a, _b; return Object.freeze(new custom_1.MultiMapContext('HashMultiMapSortedValue', (_a = options === null || options === void 0 ? void 0 : options.keyMapContext) !== null && _a !== void 0 ? _a : map_1.HashMap.defaultContext(), (_b = options === null || options === void 0 ? void 0 : options.keyMapValuesContext) !== null && _b !== void 0 ? _b : set_1.SortedSet.defaultContext())); } var _defaultContext = createContext(); /** * The default `HashMultiMapSortedValue` creators and context. * * Use this exported value to create and work with immutable `HashMultiMapSortedValue` instances. * See the [MultiMap documentation](https://rimbu.org/docs/collections/multimap) and the [HashMultiMapSortedValue API documentation](https://rimbu.org/api/rimbu/multimap/HashMultiMapSortedValue/interface). */ exports.HashMultiMapSortedValue = Object.freeze(tslib_1.__assign(tslib_1.__assign({}, _defaultContext), { createContext: createContext, defaultContext: function () { return _defaultContext; } })); //# sourceMappingURL=interface.cjs.map