map3<C, D, E> method

  1. @override
Either<L, E> map3<C, D, E>(
  1. covariant Either<L, C> m1,
  2. covariant Either<L, D> m2,
  3. E f(
    1. R b,
    2. C c,
    3. D d
    )
)
override

Change type of this Either based on its value of type R, the value of type C of a second Either, and the value of type D of a third Either.

Implementation

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