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