map<R1, R2> function

Either<L, R2> Function<L>(Either<L, R1> either) map<R1, R2>(
  1. R2 right(
    1. R1
    )
)

Implementation

Either<L, R2> Function<L>(
  Either<L, R1> either,
) map<R1, R2>(
  R2 Function(R1) right,
) =>
    <L>(either) => bimap(
          left: identity<L>,
          right: right,
        )(either);