Generic typing for an immutable array type. These types are usable with lua's hash operator to get the size of the array, and should all be accessed via 1-indexing, per lua's normal convention (e.g. a:get(a:size()) returns the last value).
Returns true if the array is empty.
Gets an element in the array. Will return nil if out of bounds.
the index in the array.
value at this index.
Returns the number of elements in the array.
Generic typing for an immutable array type. These types are usable with lua's hash operator to get the size of the array, and should all be accessed via 1-indexing, per lua's normal convention (e.g. a:get(a:size()) returns the last value).