[REBOL] Re: Newbie query on array indexing
From: greggirwin:mindspring at: 21-Nov-2001 16:22
Hi John,
<< What is best method to reference array elements using a variable
subscript
value.
E.g. I was trying to stuff values into a 100 entry array based on
a computed subsript like this:-
arrcodes: array 100 ""
subscript: (=computed value 1 to 100)
arrcode/[subscript]: "Code stored for nn" >>
How about:
change at arrcodes subscript "Code stored for nn"
I don't know if that's the best method, but it works. :)
--Gregg