Product SiteDocumentation Site

5.3.10. The List Class

A list is a non-sparse sequenced collection similar to the Arrat class (Section 5.3.6, “The Array Class”) to which you can add new items at any position in the sequence. The List creates a new index value whenever an item is added to the list and the associated index value remains valid for that item regardless of other additions or removals. Only indexes the list object generates are valid i.e. the list is never a sparse list and the list object will not modify indexes for items in the list.

Table 5.20. ooRexx List Class

Object
List
+ OrderedCollection
new
of
allIndexes
allItems
append
at, []
delete
empty
first
firstItem
hasIndex
hasItem
index
insert
isEmpty
items
last
lastItem
makeArray
previous
put, []=
remove
removeItem
section
supplier

Note

The List class also has available class methods that its metaclass, metaclass, the Class class (Section 5.1.2, “The Class Class”), defines. It also inherits methods from the OrderedCollection (Section 5.3.4, “The OrderedCollection Class”) class.

5.3.10.1. Inherited Methods

Methods inherited from the Object class (Section 5.1.1, “The Object Class”).
new (Class Method)initsend
= \= == \== <> ><instanceMethodsendWith
|| '' (abuttal)' ' (blank)instanceMethodssetMethod
(Operator Methods)isAstart
classisInstanceOfstartWith
copyobjectNamestring
defaultNameobjectName=unsetMethod
hasMethodrequest 
identityHashrun 
Methods inherited from the Collection class (Section 5.3.2, “The Collection Class”).
[]equivalentput
[]=hasIndexsubset
allIndexeshasItemsupplier
allItemsindexunion
atintersectionxor
differenceitems 
disjointmakeArray 
Methods inherited from the OrderedCollection (Section 5.3.4, “The OrderedCollection Class”).
appendintersectionsortWith
appendAlllaststableSort
deletelastItemstableSortWith
differencenextsubset
firstpreviousunion
firstItemsectionxor
insertsort