Series SKIP
From DocBase
Contents |
[edit]
SKIP
Returns the series forward or backward from the current position. SKIP is an action value.
[edit]
Arguments
- series -- (Type: series port)
- offset -- Can be positive, negative, or zero. (Type: number logic pair)
[edit]
Description
For example, SKIP series 1 is the same as NEXT. If skip attempts to move beyond the head or tail it will be stopped at the head or tail.
str: "REBOL"
print skip str 3
blk: [11 22 33 44 55]
print skip blk 3
[edit]
Categories
series � Operations on series, including blocks and strings.
string � Operations for string series.
[edit]
See also
at � Returns the series at the specified index.
index? � Returns the index number of the current position in the series.
next � Returns the series at its next position.
back � Returns the series at its previous position.
[edit]
