valueOr

inline fun <E, A> Validated<E, A>.valueOr(f: (E) -> A): A(source)

Return the Valid value, or the result of f if Invalid