combine4<L, R1, R2, R3, R4> static method
Either<L, Product4<R1, R2, R3, R4>>
combine4<
L, R1, R2, R3, R4>( - Either<L, R1> first,
- Either<L, R2> second,
- Either<L, R3> third,
- Either<L, R4> fourth,
)
Implementation
static Either<L, Product4<R1, R2, R3, R4>> combine4<L, R1, R2, R3, R4>(
Either<L, R1> first,
Either<L, R2> second,
Either<L, R3> third,
Either<L, R4> fourth,
) =>
combine3(first, second, third).combine(fourth).map(
(p) => Product4(
p.item1.item1,
p.item1.item2,
p.item1.item3,
p.item2,
),
);