arrow-core / arrow.core.extensions / NonEmptyListMonad / tailRecM
open fun <A, B> tailRecM(a: A, f: (A) -> NonEmptyListOf<Either<A, B>>): NonEmptyList<B>
Do you like Arrow?