array.get

The element at index (0 = first, negative counts from the end: -1 = last). An index outside the array is a runtime error.

array.get(id: array<any>, index: int) -> element type

Parameters

Example

last = a.get(-1)