[REBOL] Setting array variables Re:
From: rryost::home::com at: 25-Aug-2000 11:37
Here's an illustrative console session that addresses your question:
>> dat: array [2 3]
== [[none none none] [none none none]]
>> dat/1: [1 2 3]
== [[1 2 3] [none none none]]
>> dat/2: [3 4 5]
== [[1 2 3] [3 4 5]]
>> change dat/1 777
== [2 3] ; this return allows you to change a number of elements in one
statement, but I don't use it here.
>> dat
== [[777 2 3] [3 4 5]]
>> change at dat/1 2 888 ; to change the second element of first row of
array.
== [3]
>> dat
== [[777 888 3] [3 4 5]]