mapM2<A, A2 extends A, B, B2 extends B, C> static method

Option<C> mapM2<A, A2 extends A, B, B2 extends B, C>(
  1. Option<A2> fa,
  2. Option<B2> fb,
  3. Option<C> f(
    1. A a,
    2. B b
    )
)

Implementation

static Option<C> mapM2<A, A2 extends A, B, B2 extends B, C>(Option<A2> fa, Option<B2> fb, Option<C> f(A a, B b)) => fa.bind((a) => fb.bind((b) => f(a, b)));