Table 5.25. ooRexx Stem Class
| Object | |
| ↓ | |
| Stem | |
| + MapCollection | |
|
| |
= \= == \== <> >< allIndexes allItems at, [] empty hasIndex hasItem index isEmpty |
items makeArray put, []= remove removeItem request supplier toDirectory unknown |
Note
A. and assigns it to the Rexx variable A.; it also assigns the value 2 to entry 1 in the collection.
Example 5.174. Stem class - examples
say a.[1,2] -- implicitly creates stem object with name "A."
-- displays "A.1.2"
a = .stem~new("B.")
say a[1,2] -- displays "B.1.2"
[]= method (with no index argument) will assign the target value to all possible stem indexes. Following assignment, a reference to any index will return the new value until another value is assigned or the index is dropped.
[] method (with no index specified) will retrieve any globally assigned value. By default, this returns the stem NAME value.
| [] | equivalent | put |
| []= | hasIndex | subset |
| allIndexes | hasItem | supplier |
| allItems | index | union |
| at | intersection | xor |
| difference | items | |
| disjoint | makeArray |
| putAll |