recover

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

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