krisajenkins/elm-exts/10.1.0

NOTE: this package is not compatible with Elm 0.19.1

Exts.Maybe

Extensions to the core Maybe library.

isJust : Maybe a -> Bool

Boolean checks.

isNothing : Maybe a -> Bool
maybe : b -> (a -> b) -> Maybe a -> b

Apply a function to a value, returning the default if the function returns Nothing.

mappend : Maybe a -> Maybe b -> Maybe ( a, b )

Monoidal append - join two Maybes together as though they were one.

catMaybes : List (Maybe a) -> List a

Extract all the Just values from a List of Maybes.