orElse

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

Returns the transformation of the error if this Result is Err, otherwise this Ok.