mapIndexedTo

inline fun <R, C : MutableCollection<in R>> Query.mapIndexedTo(destination: C, transform: (index: Int, row: QueryRowSet) -> R): C(source)

Apply the given transform function to each row and its index and append the results to the given destination.

The transform function takes the index of a row and the row itself and returns the result of the transform applied to the row.

Since

3.0.0