Series SKIP

From DocBase

Jump to: navigation, search

Contents

SKIP

Returns the series forward or backward from the current position. SKIP is an action value.

Arguments

series -- (Type: series port)
offset -- Can be positive, negative, or zero. (Type: number logic pair)


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


Categories

series � Operations on series, including blocks and strings.
string � Operations for string series.


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.


Comments

Personal tools