map Failure
inline suspend fun <T> Outcome<T>.mapFailure(transform: suspend (Outcome.Failure) -> Outcome.Failure): Outcome<T>
Maps a Failure using the provided transform function, leaving Success unchanged.
Return
The transformed Failure if the outcome is a failure, or the original Success.
Parameters
transform
The function to transform a Failure.