The following sections describe the concept of set operations to help you
work with set operators, in particular if the receiver collection class differs
from the argument collection class.
Rexx provides the following set-operator methods:
difference
intersection
subset
union
xor
These methods are available to instances of the following collection
classes:
The OrderedCollections Array, List, Queue, and CircularQueue
The MapCollections Directory, Stem, Table, IdentityTable, and Relation
The SetCollections Set and Bag.
result=receiver~setoperator(argument)
where:
receiver
is the collection object receiving the set-operator message.
setoperator
is the set-operator method used.
argument
is the argument collection supplier supplied to the method. It can be an
instance of one of the Rexx collection classes or any object that implements a
makearray method or supplier method,
depending on class of receiver.
The result object is of the same class as the receiver collection object.