map3<C, D, E> method

  1. @override
TaskOption<E> map3<C, D, E>(
  1. covariant TaskOption<C> m1,
  2. covariant TaskOption<D> m2,
  3. E f(
    1. R b,
    2. C c,
    3. D d
    )
)
override

Change the return type of this TaskOption based on its value of type R, the value of type C of a second TaskOption, and the value of type D of a third TaskOption.

Implementation

@override
TaskOption<E> map3<C, D, E>(covariant TaskOption<C> m1,
        covariant TaskOption<D> m2, E Function(R b, C c, D d) f) =>
    flatMap((b) => m1.flatMap((c) => m2.map((d) => f(b, c, d))));