mapLeft

inline fun <T, L, R> Either<L, R>.mapLeft(fn: (L) -> T): Either<T, R>

Left-biased map() FP convention which means that Right is assumed to be the default case to operate on. If it is Right, operations like map, flatMap, ... return the Right value unchanged.


fun <L, R, T> <Error class: unknown class><Either<L, R>>.mapLeft(block: suspend (L) -> T): <Error class: unknown class><Either<T, R>>