Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In set theory, the union of two sets (call them A and B) is the set containing all elements of both A and B. In other words, if an element belongs to any of the input sets, it belongs to the result set. Figure 6-1 shows a set diagram (also known as a Venn diagram) with a graphical depiction of the union of two sets. The area marked with diagonal lines represents the result of the set operation.