map2<C, D> method

  1. @override
TaskEither<L, D> map2<C, D>(
  1. covariant TaskEither<L, C> m1,
  2. D f(
    1. R b,
    2. C c
    )
)
override

Change the return type of this TaskEither based on its value of type R and the value of type C of another TaskEither.

Implementation

@override
TaskEither<L, D> map2<C, D>(
        covariant TaskEither<L, C> m1, D Function(R b, C c) f) =>
    flatMap((b) => m1.map((c) => f(b, c)));