Array.firstIter

Returns an iterator pointing to the first element of the array.

Arguments

None

Return values

iterator
is an ArrayIterator pointing to the first element. If the array is empty, an “end” iterator is returned (see endIter).

Complexity

Constant

Example

"sl/array" useFile a: (-1 2 3 5 6 "7") makeArray; "minus one" a.firstIter.set a [print "," print TRUE] enum
Output:
minus one,2,3,5,6,7,