Set operators are common set operations that makes working with arrays easier. All set operations return an array except for has which returns a boolean value. The Set operations perform deep comparisons. The following operations are possible with sets:
...
Code Block | ||
---|---|---|
| ||
A.intersection(B); |
...
union (A ∪ B):
The set of all objects that are a member of A or B (or both)
...