Stem object is a
MapCollection
with unique indexes that are character strings.| Object | ||||||||||||||||||||||
| Methods inherited from the Object class | ||||||||||||||||||||||
| Class (Metaclass) | ||||||||||||||||||||||
| Methods inherited from the Class class | ||||||||||||||||||||||
| + Collection (Mixin Class) | ||||||||||||||||||||||
| Methods inherited from the Collection class | ||||||||||||||||||||||
| + MapCollection (Mixin Class) | ||||||||||||||||||||||
| Methods inherited from the MapCollection class | ||||||||||||||||||||||
| Stem | ||||||||||||||||||||||
|
a.1 = 2A.
and assigns it to the Rexx variable A.; it also assigns
the value 2 to entry 1 in the collection.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.=, ==,
\=, \==, <>,
and >< using the DEFINE method.