merge

inline fun <A> Either<A, A>.merge(): A(source)

Returns the value from this Right or Left.

Example:

import arrow.core.Either.Left
import arrow.core.Either.Right
import arrow.core.merge

fun test() {
Right(12).merge() // Result: 12
Left(12).merge() // Result: 12
}

inline fun <A> Validated<A, A>.merge(): A(source)