intersect

infix fun ComplexFloatArray.intersect(other: Iterable<ComplexFloat>): Set<ComplexFloat>
infix fun ComplexDoubleArray.intersect(other: Iterable<ComplexDouble>): Set<ComplexDouble>

Returns a set containing all elements that are contained by both this array and the specified collection.

The returned set preserves the element iteration order of the original array.

To get a set containing all elements that are contained at least in one of these collections use union.