bimap<L1, L2, R1, R2> function

StreamEither<L2, R2> Function(StreamEither<L1, R1> either$) bimap<L1, L2, R1, R2>({
  1. required L2 left(
    1. L1
    ),
  2. required R2 right(
    1. R1
    ),
})

Implementation

StreamEither<L2, R2> Function(
  StreamEither<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)),
    );