biMap<LL, RR> method

Either<LL, RR> biMap<LL, RR>(
  1. LL lf(
    1. L l
    ),
  2. RR rf(
    1. R r
    )
)

Come la map, con la differenza che chiama la lf o rf in base al tipo contenuto. Quindi non considera L come errore

Implementation

Either<LL, RR> biMap<LL, RR>(LL Function(L l) lf, RR Function(R r) rf) =>
    fold((l) => Left(lf(l)), (right) => Right(rf(right)));