mapError

infix inline fun <V, E, F> Result<V, E>.mapError(transform: (E) -> F): Result<V, F>

Maps this Result to Result by either applying the transform function to the error if this Result is Err, or returning this Ok.