kotest-property / io.kotest.property.arbitrary / list

list

@JvmOverloads fun <A> Arb.Companion.list(gen: Gen<A>, range: IntRange = 0..100): Arb<List<A>>

Returns an Arb whose of values are a list of values generated by the given generator. The size of each list is determined randomly by the specified range.

Shrinking is performed by removing elements from the list until the empty list.