Product SiteDocumentation Site

5.3.6.10. at


       +-,-----+
       V       |
>>-at(---index-+-)---------------------------------------------><

Returns the item associated with the specified index or indexes. If the array has no item associated with the specified index or indexes, this method returns the Nil object.
Note that the index argument may also be specified as an array of indexes.

Example 5.135. Array class - at method

   a = .array~of("Mike", "Rick")
   say a~at(2)  -- says: "Rick"