api-docs / org.ktorm.dsl / forEachIndexed
forEachIndexed
inline fun Query.forEachIndexed(
action: (index: Int, row: QueryRowSet) -> Unit
): Unit
(source code)Perform the given action on each row of the query, providing sequential index with the row.
The action function takes the index of a row and the row itself and performs the desired action on the row.
Since
3.0.0