"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.memoize = exports.undef = void 0;
function undef() {
    return undefined;
}
exports.undef = undef;
function memoize(fn) {
    let memo;
    return () => {
        if (memo === undefined) {
            memo = fn();
        }
        return memo;
    };
}
exports.memoize = memoize;
