That is, if I had two or more sets, and I wanted to return a new set containing either:
- All of the elements each set has in common (AND).
- All of the elements total of each set (OR).
- All of the elements unique to each set. (XOR).
Is there an easy, pre-existing way to do that?
Edit: That’s the wrong terminology, isn’t it?
Assuming 2 Set objects a and b
AND(intersection of two sets)
OR(union of two sets)
XOR either roll your own loop:
or do this:
See the Set documentation and this page. For more.