Array.at

Returns an entry by index.

Arguments

index
is an integer number, zero-based. If the index is out of range, an error will occur.

Return values

value
of the array entry.

Complexity

Constant

Example

"sl/array" useFile a: (1 2 0 5 "Hello" 0.3) makeArray; 3 a.at print
Output:
5