arrow-fx / arrow.fx / flattenEither
fun <E :
Throwable
, A>
IO
<EitherOf<E, A>>.flattenEither():
IO
<A>
Flatten an IO with a success of Either into an IO of A, when the left is the same error (E) as the original IO and the right is A.
Returns success if Either.Right or raises E otherwise.
Do you like Arrow?
✖