kotest-property / io.kotest.property.arbitrary / flatMap

flatMap

fun <A, B> Arb<A>.flatMap(f: (A) -> Arb<B>): Arb<B>

Returns a new Arb which takes its elements from the receiver and maps them using the supplied function.