arrow-core / arrow.core.extensions / EitherMonad / flatMap
open fun <A, B> EitherOf<L, A>.flatMap(f: (A) -> EitherOf<L, B>): Either<L, B>
Do you like Arrow?