bimap<L1, L2, R1, R2> function
Either<L2, R2> Function(Either<L1, R1> either)
bimap<L1, L2, R1, R2>({
- required L2 left(
- L1
- required R2 right(
- R1
Implementation
Either<L2, R2> Function(
Either<L1, R1> either,
) bimap<L1, L2, R1, R2>({
required L2 Function(L1) left,
required R2 Function(R1) right,
}) =>
match(
left: (value) => Left(left(value)),
right: (value) => Right(right(value)),
);