associateTo

inline fun <K, V, M : MutableMap<in K, in V>> ComplexFloatArray.associateTo(destination: M, transform: (ComplexFloat) -> Pair<K, V>): M
inline fun <K, V, M : MutableMap<in K, in V>> ComplexDoubleArray.associateTo(destination: M, transform: (ComplexDouble) -> Pair<K, V>): M

Populates and returns the destination mutable map with key-value pairs provided by transform function applied to each element of the given array.

If any of two pairs would have the same key the last one gets added to the map.