maybe_map2 {maybe} | R Documentation |
Evaluate a binary function on two maybe values
maybe_map2(.m1, .m2, .f, ...)
.m1 |
A maybe value |
.m2 |
A maybe value |
.f |
A binary function to apply to the maybe values |
... |
Named arguments for the function |
A maybe value
maybe_map2(just(1), just(2), `+`)
maybe_map2(nothing(), just(2), `/`)