kotest-property / io.kotest.property.exhaustive / flatMap

flatMap

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

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