Structural pattern matching for Maybe in the form of a function
Returns the value inside this or undefined if this is Nothing. Use extractNullable if you need a null returned instead
Returns the value inside this or null if this is Nothing. Use extract if you need an undefined returned instead
Runs an effect if this is Just, returns this to make chaining other methods possible
Runs an effect if this is Nothing, returns this to make chaining other methods possible
Returns true if this is Just, otherwise it returns false
Returns true if this is Nothing, otherwise it returns false
Returns empty list if the Maybe is Nothing or a list where the only element is the value of Just
Returns the value inside this or throws an error if this is Nothing
Returns the first
Justbetweenthisand anotherMaybeorNothingif boththisand the argument areNothing