associateByTo

inline fun <K, M : MutableMap<in K, in ComplexFloat>> ComplexFloatArray.associateByTo(destination: M, keySelector: (ComplexFloat) -> K): M
inline fun <K, M : MutableMap<in K, in ComplexDouble>> ComplexDoubleArray.associateByTo(destination: M, keySelector: (ComplexDouble) -> K): M

Populates and returns the destination mutable map with key-value pairs, where key is provided by the keySelector function applied to each element of the given array and value is the element itself.

If any two elements would have the same key returned by keySelector the last one gets added to the map.


inline fun <K, V, M : MutableMap<in K, in V>> ComplexFloatArray.associateByTo(    destination: M,     keySelector: (ComplexFloat) -> K,     valueTransform: (ComplexFloat) -> V): M
inline fun <K, V, M : MutableMap<in K, in V>> ComplexDoubleArray.associateByTo(    destination: M,     keySelector: (ComplexDouble) -> K,     valueTransform: (ComplexDouble) -> V): M

Populates and returns the destination mutable map with key-value pairs, where key is provided by the keySelector function and and value is provided by the valueTransform function applied to elements of the given array.

If any two elements would have the same key returned by keySelector the last one gets added to the map.