Description Usage Arguments Format Value See Also
Binds then calls function. If the first argument, m, is Nothing() any chain of operations will short-circuit and result in Nothing()
1 | maybe_then(m, f)
|
m |
A Maybe (two-track) value. |
f |
A function taking a non-optional (one-track) argument and returning an optional (two-track) value. May or may not be called. |
maybe_then :: Maybe a -> (a -> Maybe b) -> Maybe b
Nothing() if the m is Nothing(). Otherwise the result of applying the function
Other Maybe functions: as_maybe
,
is_nothing
, maybe_apply
,
maybe_bind
, maybe_default
,
maybe_map_2
, maybe_map_3
,
maybe_map_4
, maybe_map_5
,
maybe_map
, maybes_collapse
,
maybes_partition
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.