associate With
inline fun <V> ComplexFloatArray.associateWith(valueSelector: (ComplexFloat) -> V): Map<ComplexFloat, V>
Content copied to clipboard
inline fun <V> ComplexDoubleArray.associateWith(valueSelector: (ComplexDouble) -> V): Map<ComplexDouble, V>
Content copied to clipboard
Returns a Map where keys are elements from the given array 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 array.