@ (Array)

Returns an entry of an array by index.

Arguments

index
is an integer number, zero-based. If the index is out of range, an error will occur.
The
array
to get an entry from.

Return values

value
of the array entry.

Complexity

Constant

Example

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