arrow-core / arrow.core.extensions / EitherApplicativeError / raiseError
open fun <A> raiseError(e: L): Either<L, A>
Do you like Arrow?