< Rebol Programming

USAGE:

INDEX? series /xy 

DESCRIPTION:

Returns the index number of the current position in the series.

INDEX? is an action value.

ARGUMENTS:

  • series -- (Type: series port)

REFINEMENTS:

  • /xy -- Returns index as an XY pair offset.

SOURCE CODE

index?: native[
    {Returns the index number of the current position in the series.} 
    series [series! port!] 
    /xy "Returns index as an XY pair offset."
]
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.