mapError

inline fun <R> mapError(transform: (E) -> R): Result<T, R>