The Collection Classes

Some potentially very useful classes for programmers are those for defining collections of objects that require manipulation. A collection is an object that contains a number of items, which can be any objects. These manipulations might include counting objects, organizing them, or assigning them a supplier (for example, to indicate that a specific assortment of baked goods is supplied by the Pie-by-Night Bakery). The classes that enable such manipulations are called collection classes.

REXX includes classes for arrays, lists, queues, tables, directories, and the like. Every item stored in a REXX collection has an associated index that you can use to retrieve the item from the collection with the AT or [] (left and right bracket) methods, and each collection defines its own acceptable index types: