Description Usage Arguments Format Value See Also Examples
In functional programming, this function would be called "return" as it *returns* a value of type Maybe. To avoid name collision, and to follow the convention for existing types, the coversion function is instead named "as_maybe"
1 | as_maybe(a)
|
a |
Any type of value |
as_maybe :: a -> Maybe a
A Maybe type
Other Maybe functions: is_nothing
,
maybe_apply
, maybe_bind
,
maybe_default
, maybe_map_2
,
maybe_map_3
, maybe_map_4
,
maybe_map_5
, maybe_map
,
maybe_then
, maybes_collapse
,
maybes_partition
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.