maybe_map_2: Apply a one-track function to 2 two-track arguments.

Description Usage Arguments Format Value See Also

Description

Similar to maybe_map but for input of two Maybe type values. Cannot use purrr-style lambdas (~ .x).

Usage

1
maybe_map_2(a, b, f)

Arguments

a

A Maybe (two-track) value.

b

A Maybe (two-track) value.

f

A function taking two non-Maybe (one-track) arguments and returning either a non-Maybe (one-track) value or a Maybe (two-track) value.

Format

maybe_map_2 :: Maybe a -> Maybe b -> (a -> b -> c) -> Maybe c

Value

A Maybe (two-track) value

See Also

Other Maybe functions: as_maybe, is_nothing, maybe_apply, maybe_bind, maybe_default, maybe_map_3, maybe_map_4, maybe_map_5, maybe_map, maybe_then, maybes_collapse, maybes_partition


Teresa00/hfmAnnotation documentation built on May 14, 2019, 12:51 a.m.