REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: poke

poke  value  index  data

Returns value after changing its data at the given index. (Modifies)

Arguments:

value [series! port! map! gob! bitset!]

index - Index offset, symbol, or other value to use as index

data - New value

See also:

pick   change  

Description

Similar to CHANGE, but also takes an index into the series.

str: "ABC"
poke str 2 #"/"
print str
A/C
print poke 1.2.3.4 2 10
10


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin