Product Site

5.3.6.22. last

Returns the index of the last item in the array or .nil if the array is empty. For multi-dimensional Arrays, index is returned as an array of index items.
Example 5.181. Array class — last method
a = .array~of("Fred", , "Mike", , "David")
say a~last  -- says: 5