R/maybe.R
is_maybe.Rd
Check if an object is a maybe value
is_maybe(a)
Object to check
TRUE or FALSE
TRUE
FALSE
is_maybe(1) #> [1] FALSE is_maybe(just(1)) #> [1] TRUE is_maybe(nothing()) #> [1] TRUE