maybe_map3: Evaluate a ternary function on three maybe values

View source: R/maybe.R

maybe_map3R Documentation

Evaluate a ternary function on three maybe values

Description

Evaluate a ternary function on three maybe values

Usage

maybe_map3(.m1, .m2, .m3, .f, ...)

Arguments

.m1

A maybe value

.m2

A maybe value

.m3

A maybe value

.f

A ternary function to apply to the maybe values

...

Named arguments for the function .f

Value

A maybe value

Examples

maybe_map3(just(1), just(2), just(3), function(x, y, z) x + y + z)
maybe_map3(nothing(), just(2), just(3), function(x, y, z) x / y * z)

maybe documentation built on Aug. 7, 2023, 5:11 p.m.