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

Either<L, Product3<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, Product3<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) => Product3(p.item1.item1, p.item1.item2, p.item2));