flatMap

inline fun <T, R> Dataset<T>.flatMap(noinline func: (T) -> Iterator<R>): Dataset<R>

(Kotlin-specific) Returns a new Dataset by first applying a function to all elements of this Dataset, and then flattening the results.