@ (Vector)

Returns a coordinate of a vector by index.

Arguments

index
is an integer number, zero-based. If the index is out of range, an error will occur.
The
vector
(see Vector) to get the element of.

Return values

value
of the vector coordinate.

Complexity

Constant

Example

"sl/algebra" useFile v1: (1.0 2.0 3.0) makeVector; 1 v1 @ print
Output:
2.000000