Table 5.16. ooRexx Array Class
Object | |
↓ | |
Array | |
+ OrderedCollection | |
new of | |
allIndexes allItems append at, [] delete dimension dimensions empty fill first firstItem hasIndex hasItem index insert isEmpty |
items last lastItem makeArray makeString next previous put, []= remove removeItem section size sort sortWith stableSort stableSortWith supplier toString |
Note
Example 5.128. Array class - [] method
x = myarray[1,2,3] -- retrieves an item from a multi-dimension array index = .array~of(1,2,3) -- create an index list x = myarray[index] -- also retrieves from "1,2,3"
[] | equivalent | put |
[]= | hasIndex | subset |
allIndexes | hasItem | supplier |
allItems | index | union |
at | intersection | xor |
difference | items | |
disjoint | makeArray |
append | intersection | sortWith |
appendAll | last | stableSort |
delete | lastItem | stableSortWith |
difference | next | subset |
first | previous | union |
firstItem | section | xor |
insert | sort |