content_image/709297.jpg content_image/709298.jpg
## 8.B. Set Operations 

If x is a set variable, and E is a ,et expression, then 

x := E 

is allowed if all members of E are I n the base type of x, and the types of x and E both are packed or neither I" packed. The following operators are applicable on all objects with St: I structure. Assume A and B are set values of the same type: 

<img src='content_image/709297.jpg'>

Five relational operators are .'Ipplicable to set operands. Assume A and B are set expressions of t lIe same type and e is an ordinal expression of the base type. 

<img src='content_image/709298.jpg'>

## Examples of declarations 

type Primary = (Red, ' ·.llow, Blue); Color = set of Pl ir[ury; var Huel, Hue2: Color; Vowels, ConsonantE. Letters: set of Char; Opcode: set of 0 .. i; Add: Boolean; Ch: Char; 

