map3<C, D, E> method
StateAsync<S, E>
map3<C, D, E>(
- covariant StateAsync<
S, C> m1, - covariant StateAsync<
S, D> m2, - E f(
- A a,
- C c,
- D d
override
Change type of this StateAsync based on its value of type A
, the
value of type C
of a second StateAsync, and the value of type D
of a third StateAsync.
Implementation
@override
StateAsync<S, E> map3<C, D, E>(covariant StateAsync<S, C> m1,
covariant StateAsync<S, D> m2, E Function(A a, C c, D d) f) =>
flatMap((a) => m1.flatMap((c) => m2.map((d) => f(a, c, d))));