arrow-core-data / arrow.core / Validated / toEither
fun toEither(): Either<E, A>
fun toEither():
Either
<E, A>
Converts the value to an Either<E, A>
Do you like Arrow?