combine3<L, R1, R2, R3> static method

Either<L, (R1, R2, R3)> combine3<L, R1, R2, R3>(
  1. Either<L, R1> first,
  2. Either<L, R2> second,
  3. Either<L, R3> third
)

Implementation

static Either<L, (R1, R2, R3)> combine3<L, R1, R2, R3>(
  Either<L, R1> first,
  Either<L, R2> second,
  Either<L, R3> third,
) =>
    first.combine(second).combine(third).map((p) => (p.$1.$1, p.$1.$2, p.$2));