"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.emplaceMap = emplaceMap;
function emplaceMap(dict, key, generator) {
    const oldbie = dict.get(key);
    if (oldbie !== undefined) {
        return oldbie;
    }
    const value = generator();
    dict.set(key, value);
    return value;
}
//# sourceMappingURL=emplaceMap.js.map