Rebol Programming/index?

From Wikibooks, open books for an open world
< Rebol Programming
Jump to navigation Jump to search

USAGE:[edit | edit source]

INDEX? series /xy 

DESCRIPTION:[edit | edit source]

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

INDEX? is an action value.

ARGUMENTS:[edit | edit source]

  • series -- (Type: series port)

REFINEMENTS:[edit | edit source]

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

SOURCE CODE[edit | edit source]

index?: native[
    {Returns the index number of the current position in the series.} 
    series [series! port!] 
    /xy "Returns index as an XY pair offset."
]