To iterate over the elements in a collection-class instance, you send the do: message, as described in Segment 382 for Array instances, and in this chapter for OrderedCollection, Bag, Set, and SortedCollection instances.
do:
Array
OrderedCollection
Bag
Set
SortedCollection