REBOL Programming/poke

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

USAGE:[edit]

POKE value index data 

DESCRIPTION:[edit]

Changes a value at the given index. (See manual)

POKE is an action value.

ARGUMENTS:[edit]

  • value -- (Type: series money date time object port tuple)
  • index -- (Type: number logic pair)
  • data -- new value (Type: any)

SOURCE CODE[edit]

poke: native[
    "Changes a value at the given index. (See manual)" 
    value [series! money! date! time! object! port! tuple!] 
    index [number! logic! pair!] 
    data "new value"
]