Range.at

Returns an entry by its relative index. Applicable to ArrayRange only.

Arguments

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

Return values

value
of the range entry.

Complexity

Constant

Example

"sl/array" useFile a: (1 2 3 4 5 6) makeArray; r: a.makeRange; 2 r.at print
Output:
3