[REBOL] Re: I just ain't gettin' it! :)
From: edanaii:cox at: 19-Dec-2002 7:53
>>If I have an array of x: [ 1 2 3 4 ], how do I update it to be x: [ 1 2
>> 5 4 ]. I do not want to change any other value and I want to do it based
>> on Index.
>One way is 'poke (just like good old fashioned Basic):
> x: [ 1 2 3 4 ]
>;; replace a value
>poke x index 5
>== [1 2 5 4]
>;; do something to a value:
>poke x index x/:index * 2
>== [1 2 10 4]
That's the ticket!
Exactly what I was looking for.
Thanks, Sunanda. :)
Sincerely, | The problems of two little people don't amount to
Ed Dana | a hill of beans in this crazy mixed-up world! But
Software Developer | this is OUR hill, and these are OUR beans!
1Ghz Athlon Amiga | -- Naked Gun via Casablanca.