Product Site

5.3.6.14. first

Returns the index of the first item in the array or .nil if the array is empty. For multi-dimensional Arrays, the index is returned as an array of index values.
Example 5.173. Array class — first method
a = .array~of("Mike", "Rick", "Fred", "Rick")
say a~first  -- says: 1
a = .array~of(,"Mike", "Rick")
say a~first  -- says: 2