union

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

Returns a set containing all distinct elements from both collections.

The returned set preserves the element iteration order of the original array. Those elements of the other collection that are unique are iterated in the end in the order of the other collection.

To get a set containing all elements that are contained in both collections use intersect.