Legal operations that you can specify on collections are: the equal sign (=), subsetof, union, and intersection.
Valid Operation | Description | Examples |
---|---|---|
= |
Compares collections to see if one is equal to another. | {3,4} = {4,3} |
subsetof |
Indicates that one collection is a subset of another. | {3,4} SUBSETOF {3,4,5,6,7} |
union |
Merges one collection with another. An element can appear only once in this merged collection. | {3,4,5} UNION {4,5,6} = {3,4,5,6} |
intersection |
Results in a collection containing only the common elements of the collections you are intersecting. | {3,4,5,6} INTERSECTION {1,2,3,4} = {3,4} |