Description Usage Arguments Format Value See Also Examples
Determines whether or not its value is of type Nothing
1 | is_nothing(m)
|
m |
A Maybe type object (Just | Nothing) |
is_nothing :: Maybe a -> Boolean
A boolean indicating whether its value is of type Nothing
Other Maybe functions: as_maybe
,
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 4 5 | is_nothing(Nothing()) # TRUE
is_nothing(Just(1)) # FALSE
## Not run: is_none(NA) # ERROR
## Not run: is_none(NULL) # ERROR
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.