arrow-core-data / arrow.core / Option / toEither
inline fun <L> toEither(ifEmpty: () -> L): Either<L, A>
inline fun <L> toEither(ifEmpty: () -> L):
Either
<L, A>
Do you like Arrow?