bimap<C, D> method

ReaderTaskEither<E, C, D> bimap<C, D>(
  1. C mLeft(
    1. L l
    ),
  2. D mRight(
    1. R r
    )
)

Define two functions to change both the Left and Right value of the ReaderTaskEither.

Implementation

ReaderTaskEither<E, C, D> bimap<C, D>(
  C Function(L l) mLeft,
  D Function(R r) mRight,
) =>
    mapLeft(mLeft).map(mRight);