+ (ArrayIterator)

Returns an iterator shifted backward by a given number of entries.

Arguments

iterator0
is the initial ArrayIterator.
shift
is an integer number to shift the iterator by.

Return values

iterator1
is the iterator shifted forward by the given number of positions. If
shift
is zero, returns the same iterator, if it is negative, shifts backward.

Complexity

Constant

Example

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