map3<C, D, E> method

  1. @override
Option<E> map3<C, D, E>(
  1. covariant Option<C> mc,
  2. covariant Option<D> md,
  3. E f(
    1. T t,
    2. C c,
    3. D d
    )
)
override

Change type of this Option based on its value of type T, the value of type C of a second Option, and the value of type D of a third Option.

Implementation

@override
Option<E> map3<C, D, E>(covariant Option<C> mc, covariant Option<D> md,
        E Function(T t, C c, D d) f) =>
    flatMap((a) => mc.flatMap((c) => md.map((d) => f(a, c, d))));