dist/maybe/operators.js
function or(defaultValue) {
    return function (maybe) {
        for (const value of maybe) {
            return maybe_1.just(value);
        }
        return defaultValue;
    };
}
function or(defaultValue) {
    return function (maybe) {
        for (const value of maybe) {
            return maybe_1.just(value);
        }
        return defaultValue;
    };
}
Return either the current maybe, or the maybe provided if the current maybe is empty