|REBOL 3 Docs||Guide||Concepts||Functions||Datatypes||Errors|
|TOC < Back Next >||Updated: 3-Aug-2010 Edit History|
Returns the value at the specified position in a series.
series [series! map! gob! pair! date! time! tuple! bitset! port!]
index - Index offset, symbol, or other value to use as index
The value is picked relative to the current position in the series (not necessarily the head of the series). The VALUE argument may be INTEGER or LOGIC. A positive integer positions forward, a negative positions backward. If the INTEGER is out of range, NONE is returned. If the value is LOGIC, then TRUE refers to the first position and FALSE to the second (same order as EITHER). An attempt to pick a value beyond the limits of the series will return NONE.
str: "REBOL" print pick str 2 E
print pick 126.96.36.199 3 80
print pick ["this" "that"] now/time > 12:00 this
|TOC < Back Next >||REBOL.com - WIP Wiki||Feedback Admin|