Jump to content

Rebol Programming/poke

From Wikibooks, open books for an open world

USAGE:

[edit | edit source]
POKE value index data 

DESCRIPTION:

[edit | edit source]

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

POKE is an action value.

ARGUMENTS:

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

SOURCE CODE

[edit | edit source]
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"
]