dist/maybe/operators.js
function match({ just, nothing }) {
    return function (maybe) {
        for (const value of maybe) {
            return just(value);
        }
        return nothing();
    };
}
function match({ just, nothing }) {
    return function (maybe) {
        for (const value of maybe) {
            return just(value);
        }
        return nothing();
    };
}
function match ( { just , nothing } ) { return function ( maybe ) { for ( const value of maybe ) { return just ( value ) ; } return nothing ( ) ; } ; }
Match the maybe, calling just if there is a value and nothing if not, and return the following value
Match the maybe calling just if there is a value and nothing if not and return the following value