map3<C, D, E> method
TaskOption<E>
map3<C, D, E>(
- covariant TaskOption<
C> m1, - covariant TaskOption<
D> m2, - E f(
- R b,
- C c,
- 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))));