planet-mitchell-0.0.0: Planet Mitchell
Maybe.Partial
fromJust :: Maybe a -> a #
The fromJust function extracts the element out of a Just and throws an error if its argument is Nothing.
fromJust
Just
Nothing
Basic usage:
>>> fromJust (Just 1) 1
>>>
fromJust (Just 1)
>>> 2 * (fromJust (Just 10)) 20
2 * (fromJust (Just 10))
>>> 2 * (fromJust Nothing) *** Exception: Maybe.fromJust: Nothing
2 * (fromJust Nothing)