REBOL Programming/index?

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

USAGE:[edit]

INDEX? series /xy 

DESCRIPTION:[edit]

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

INDEX? is an action value.

ARGUMENTS:[edit]

  • series -- (Type: series port)

REFINEMENTS:[edit]

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

SOURCE CODE[edit]

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