mapLeft<C> method

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

Change the value in the Left of IOEither.

Implementation

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