associate With
inline fun <K, D : Dimension, V> MultiArray<K, D>.associateWith(valueSelector: (K) -> V): Map<K, V>
Content copied to clipboard
Returns a Map where keys are elements from the given collection and values are produced by the valueSelector function applied to each element.
If any two elements are equal, the last one gets added to the map.
The returned map preserves the entry iteration order of the original collection.