mapEither

inline fun <V, E, U, F> Result<V, E>.mapEither(success: (V) -> U, failure: (E) -> F): Result<U, F>

Maps this Result to Result by applying either the success function if this Result is Ok, or the failure function if this Result is an Err.