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)


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

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

data - New value

See also:

pick   change  


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

str: "ABC"
poke str 2 #"/"
print str
print poke 2 10

  TOC < Back Next > - WIP Wiki Feedback Admin