Hi All,

At present I am using the following to assign to an array:

REBOL []
grid: array/initial [8 8 8] false
random/seed now
for z -3 2 1 [
 for y -3 2 1 [
  for x -3 2 1 [
   do reform join "grid/" [x + 5 "/" y + 5 "/" z + 5 ": random true"]
  ]
 ]
]
print grid
halt

This works fine but seems to be a rather round-about way to achieve the
assignment.
Is there a better way?

Ideally I would like to have used something like:
-> grid/:x/:y/:z: random true
but this only gives a get error.


James.

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to