map2<C, D> method

  1. @override
IO<D> map2<C, D>(
  1. covariant IO<C> mc,
  2. D f(
    1. A a,
    2. C c
    )
)
override

Change type of this IO based on its value of type A and the value of type C of another IO.

Implementation

@override
IO<D> map2<C, D>(covariant IO<C> mc, D Function(A a, C c) f) =>
    flatMap((a) => mc.map((c) => f(a, c)));