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