associate To
inline fun <T, D : Dimension, K, V, M : MutableMap<in K, in V>> MultiArray<T, D>.associateTo(destination: M, transform: (T) -> Pair<K, V>): M
Content copied to clipboard
Populates and returns the destination mutable map with key-value pairs provided by transform function applied to each element of the given collection.
If any of two pairs would have the same key the last one gets added to the map.