api-docs / org.ktorm.dsl / flatMapIndexedTo
flatMapIndexedTo
inline fun <R, C : MutableCollection<in R>> Query.flatMapIndexedTo(
destination: C,
transform: (index: Int, row: QueryRowSet) -> Iterable<R>
): C
(source code)Append all elements yielded from results of transform function being invoked on each row and its index
in the query, to the given destination.
Since
3.1.0