Extensions to the core Maybe library.
Apply a function to a value, returning the default if the value is Nothing.
Join two Maybes together as though they were one.
Extract all the Just values from a List of Maybes.
Join together two Maybe values using the supplied function. If
either value is Nothing, the result is Nothing.
If x is a Just _ value, return it, otherwise return Just default.
Check the if value in the Maybe matches a predicate. If it does, pass it through, if not, return nothing.
matches isEven (Just 2) => Just 2
matches isEven (Just 3) => Nothing
matches isEven Nothing => NothingValidate a value against a predicate, returning a Maybe.
validate isEven 2 => Just 2
validate isEven 3 => NothingWhen test returns true, return Just value, otherwise return Nothing.
Return the first non-Nothing entry in the list.
Boolean checks.