kotest-property / io.kotest.property.arbitrary / distinct

distinct

fun <A> Arb<A>.distinct(): Arb<A>

Returns a new Arb which ensures only unique values are generated by keeping track of previously generated values.

Note: This arb can result in an infinite loop if more elements are requested than can be generated uniquely.