krisajenkins/elm-exts/6.0.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
maybeString : Maybe String -> String

Simple transform for displaying Maybe Strings.

maybeNumber : Maybe num -> String

Simple transform for displaying Maybe nums.

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

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