[REBOL] Re: I just ain't gettin' it! :)
From: sunandadh:aol at: 18-Dec-2002 17:41
Ed:> 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 ] index: 3 ;; 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] Sunanda.







