@rimbu/multimap
Version:
An immutable Map where each key can have multiple values
21 lines • 1.33 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HashMultiMapHashValue = void 0;
var tslib_1 = require("tslib");
var hashed_1 = require("@rimbu/hashed");
var custom_1 = require("@rimbu/multimap/custom");
function createContext(options) {
var _a, _b;
return Object.freeze(new custom_1.MultiMapContext('HashMultiMapHashValue', (_a = options === null || options === void 0 ? void 0 : options.keyMapContext) !== null && _a !== void 0 ? _a : hashed_1.HashMap.defaultContext(), (_b = options === null || options === void 0 ? void 0 : options.keyMapValuesContext) !== null && _b !== void 0 ? _b : hashed_1.HashSet.defaultContext()));
}
var _defaultContext = createContext();
/**
* The default `HashMultiMapHashValue` creators and context.
*
* Use this exported value to create and work with immutable `HashMultiMapHashValue` instances.
* See the [MultiMap documentation](https://rimbu.org/docs/collections/multimap) and the [HashMultiMapHashValue API documentation](https://rimbu.org/api/rimbu/multimap/HashMultiMapHashValue/interface).
*/
exports.HashMultiMapHashValue = Object.freeze(tslib_1.__assign(tslib_1.__assign({}, _defaultContext), { createContext: createContext, defaultContext: function () {
return _defaultContext;
} }));
//# sourceMappingURL=interface.cjs.map