api-docs / org.ktorm.dsl / associateTo
associateTo
inline fun <K, V, M : MutableMap<in K, in V>> Query.associateTo(
destination: M,
transform: (row: QueryRowSet) -> Pair<K, V>
): M
(source code)Populate and return the destination mutable map with key-value pairs provided by transform function applied to
each row of the query.
If any of two pairs would have the same key the last one gets added to the map.
Since
3.0.0