kotest-property / io.kotest.property.arbitrary / subsequence

subsequence

fun <A> Arb.Companion.subsequence(list: List<A>): Arb<List<A>>

Generates a random subsequence of the input list, including the empty list. The returned list has the same order as the input list.