valueOr

inline fun <V, F> Result<V, F>.valueOr(handler: (F) -> V): V

Returns success value or uses handler to map failure to value.

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