+-,-----+
V |
>>-hasIndex(---index-+-)---------------------------------------><
1 (true) if the array contains an item associated with the specified index or indexes. Returns 0 (false) otherwise.
Example 5.143. Array class - hasIndex method
a = .array~of("Mike", "Rick", "Fred", "Rick")
say a~hasIndex(2) -- says: 1
say a~hasIndex(5) -- says: 0