bimap<L2, R2> method

EitherBuilder<L2, R2> bimap<L2, R2>({
  1. required R2 right(
    1. R
    ),
  2. required L2 left(
    1. L
    ),
})

Implementation

EitherBuilder<L2, R2> bimap<L2, R2>({
  required R2 Function(R) right,
  required L2 Function(L) left,
}) =>
    EitherBuilder(
      E.bimap(
        right: right,
        left: left,
      )(_either),
    );