"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MapUtil = void 0;
var MapUtil;
(function (MapUtil) {
    function take(map, key, value) {
        if (map.has(key)) {
            return map.get(key);
        }
        const newValue = value();
        map.set(key, newValue);
        return newValue;
    }
    MapUtil.take = take;
})(MapUtil || (exports.MapUtil = MapUtil = {}));
//# sourceMappingURL=MapUtil.js.map