mapLeft<C> method

ReaderTaskEither<E, C, R> mapLeft<C>(
  1. C f(
    1. L l
    )
)

Change the value in the Left of ReaderTaskEither.

Implementation

ReaderTaskEither<E, C, R> mapLeft<C>(C Function(L l) f) => ReaderTaskEither(
      (env) async => (await run(env)).match(
        (l) => Either.left(f(l)),
        Either.of,
      ),
    );