api-docs / org.ktorm.dsl / mapIndexed
mapIndexed
inline fun <R> Query.mapIndexed(
transform: (index: Int, row: QueryRowSet) -> R
): List<R>
(source code)Return a list containing the results of applying the given transform function to each row and its index.
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