is_nothing: Determines whether or not its value is of type Nothing

Description Usage Arguments Format Value See Also Examples

Description

Determines whether or not its value is of type Nothing

Usage

1

Arguments

m

A Maybe type object (Just | Nothing)

Format

is_nothing :: Maybe a -> Boolean

Value

A boolean indicating whether its value is of type Nothing

See Also

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

Examples

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

Teresa00/hfmAnnotation documentation built on May 14, 2019, 12:51 a.m.