arrow-core-data / arrow.core / valueOr
inline fun <E, A> ValidatedOf<E, A>.valueOr(f: (E) -> A): A
inline fun <E, A>
ValidatedOf
<E, A>.valueOr(f: (E) -> A): A
Return the Valid value, or the result of f if Invalid
Do you like Arrow?