maybe_map | R Documentation |
Evaluate a function on a maybe value
maybe_map(.m, .f, ...)
fmap(.m, .f, ...)
.m |
A maybe value |
.f |
A function to apply to the maybe value |
... |
Named arguments for the function |
A maybe value
just(9) %>% maybe_map(sqrt)
nothing() %>% maybe_map(sqrt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.