arrow-core-data / arrow.core / findValid
inline fun <E, A>
ValidatedOf
<E, A>.findValid(SE:
Semigroup
<E>, that: () ->
Validated
<E, A>):
Validated
<E, A>
If this
is valid return this
, otherwise if that
is valid return that
, otherwise combine the failures.
This is similar to orElse except that here failures are accumulated.
Do you like Arrow?
✖