and_then2 | R Documentation |
Evaluate a binary maybe returning function on two maybe values
and_then2(.m1, .m2, .f, ...)
.m1 |
A maybe value |
.m2 |
A maybe value |
.f |
A binary maybe returning function to apply to the maybe values |
... |
Named arguments for the function |
A maybe value
and_then2(just(1), just(2), maybe(`+`))
and_then2(nothing(), just(2), maybe(`/`))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.