partition

inline fun ComplexFloatArray.partition(predicate: (ComplexFloat) -> Boolean): Pair<List<ComplexFloat>, List<ComplexFloat>>
inline fun ComplexDoubleArray.partition(predicate: (ComplexDouble) -> Boolean): Pair<List<ComplexDouble>, List<ComplexDouble>>

Splits the original array into pair of lists, where first list contains elements for which predicate yielded true, while second list contains elements for which predicate yielded false.