Array.first

Returns the first element of the array. The array must not be empty, otherwise, an error will occur.

Arguments

None

Return values

value
is the first entry in the array.

Complexity

Constant

Example

"sl/array" useFile a: (-1 2 3 5 6 "7") makeArray; a.first print
Output:
-1