Set operators

The following operations on sets can be performed with operators: Union, difference and intersection. The operators needed for this are listed in table (6.6).

Table 6.6: Set operators
Operator Action
+ Union
- Difference
* Intersection

The set type of the operands must be the same, or an error will be generated by the compiler.