REBOL Programming/pick

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

USAGE:[edit]

PICK series index 

DESCRIPTION:[edit]

Returns the value at the specified position in a series.

PICK is an action value.

ARGUMENTS:[edit]

  • series -- (Type: series pair event money date time object port tuple any-function)
  • index -- (Type: number logic pair)

SOURCE CODE[edit]

pick: native[
    {Returns the value at the specified position in a series.} 
    series [series! pair! event! money! date! time! object! port! tuple! any-function!] 
    index [number! logic! pair!]
]