[REBOL] Paths, Arrays, Assignment and other bothersome things
From: james:mustard at: 17-Dec-2001 14:00
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.