partition
inline fun ComplexFloatArray.partition(predicate: (ComplexFloat) -> Boolean): Pair<List<ComplexFloat>, List<ComplexFloat>>
Content copied to clipboard
inline fun ComplexDoubleArray.partition(predicate: (ComplexDouble) -> Boolean): Pair<List<ComplexDouble>, List<ComplexDouble>>
Content copied to clipboard
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
.