maybe_contains | R Documentation |
If the maybe value is a 'Nothing' variant FALSE
will be returned. If it is
a 'Just' variant the contents will be unwrapped and compared to the value
argument using base::identical
.
maybe_contains(.m, value)
.m |
A maybe value |
value |
A value to check |
TRUE
or FALSE
just(1) %>% maybe_contains(1)
just("a") %>% maybe_contains(1)
nothing() %>% maybe_contains(1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.