Evaluate a binary function on two maybe values
Usage
maybe_map2(.m1, .m2, .f, ...)
Arguments
- .m1
A maybe value
- .m2
A maybe value
- .f
A binary function to apply to the maybe values
- ...
Named arguments for the function .f
Examples
maybe_map2(just(1), just(2), `+`)
#> Just
#> [1] 3
maybe_map2(nothing(), just(2), `/`)
#> Nothing