api-docs / org.ktorm.dsl / mapIndexedNotNullTo
mapIndexedNotNullTo
inline fun <R : Any, C : MutableCollection<in R>> Query.mapIndexedNotNullTo(
destination: C,
transform: (index: Int, row: QueryRowSet) -> R?
): C
(source code)Apply the given transform function to each row and its index and append only the non-null 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