[REBOL] Re: I just ain't gettin' it! :)
From: cal:prolific at: 18-Dec-2002 15:31
you can do it with change, but it's probably easier to do what you described
using 'POKE
>> help poke
USAGE:
POKE value index data
DESCRIPTION:
Returns value after changing its data at the given index. (See
manual)
POKE is an action value.
ARGUMENTS:
value -- (Type: series money date time object port tuple)
index -- (Type: number logic)
data -- new value (Type: any)
>> x: [ 1 2 3 4 ]
== [1 2 3 4]
>> n: 3
== 3
>> poke x n 5
== [1 2 5 4]