kmongo / kotlin.collections / com.mongodb.client.MongoIterable / flatMapTo

flatMapTo

inline fun <T, R, C : MutableCollection<in R>> MongoIterable<T>.flatMapTo(destination: C, crossinline transform: (T) -> MongoIterable<R>): C (source)

Appends all elements yielded from results of transform function being invoked on each element of original collection, to the given destination.