mapLeft<L1, L2> function

Either<L2, R> Function<R>(Either<L1, R> either) mapLeft<L1, L2>(
  1. L2 left(
    1. L1
    )
)

Implementation

Either<L2, R> Function<R>(
  Either<L1, R> either,
) mapLeft<L1, L2>(
  L2 Function(L1) left,
) =>
    <R>(either) => bimap(
          right: identity<R>,
          left: left,
        )(either);