Skip to contents

Check if an object is a maybe value

Usage

is_maybe(a)

Arguments

a

Object to check

Value

TRUE or FALSE

Examples

is_maybe(1)
#> [1] FALSE
is_maybe(just(1))
#> [1] TRUE
is_maybe(nothing())
#> [1] TRUE