//arrow-core/arrow.core/Either/replicate
common fun replicate(n: Int): Either<A, List<B»
Do you like Arrow?