mapFailure

inline fun <V, F, F2> Result<V, F>.mapFailure(mapper: (F) -> F2): Result<V, F2>

Maps failure or passes success value.

Important: This is a Public Preview API. It may be changed or removed at any time.