|
at
+-,-----+
V |
>>-at(---index-+-)---------------------------------------------><
Returns the item associated with the specified [index] or [index] es. If the array has no item associated with the specified [index] or [index] es, this method returns the Nil object. Note that the index argument may also be specified as an array of indexes. Array class - at method
a = .array~of("Mike", "Rick")
say a~at(2) -- says: "Rick"
|