merge

fun <T> Either<T, T>.merge(): T

Returns the value from this either whether its Either.Left or Either.Right.

Important: This is a Public Preview API. It may be changed or removed at any time.