arrow-core-data / arrow.core / Either / replicate

replicate

fun replicate(n: Int): Either<A, List<B>>

Do you like Arrow?

Arrow Org
<