arrow-core-data / arrow.core / merge
fun <A> EitherOf<A, A>.merge(): A
fun <A>
EitherOf
<A, A>.merge(): A
Returns the value from this Either.Right or Either.Left.
Example:
Right(12).merge() // Result: 12 Left(12).merge() // Result: 12
Do you like Arrow?