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