mapLeft<C> method

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

Change the value in the Left of TaskEither.

Implementation

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