//arrow-core/arrow.core/valueOr

valueOr

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

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

Do you like Arrow?

Arrow Org
<