distinctBy

inline fun <K> ComplexFloatArray.distinctBy(selector: (ComplexFloat) -> K): List<ComplexFloat>
inline fun <K> ComplexDoubleArray.distinctBy(selector: (ComplexDouble) -> K): List<ComplexDouble>

Returns a list containing only elements from the given array having distinct keys returned by the given selector function.

The elements in the resulting list are in the same order as they were in the source array.