map2<C, D> method

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

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

Implementation

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