[REBOL] creating empty blocks
From: gchiu:compkarori at: 21-Sep-2001 23:15
I want to add some empty blocks as follows:
rooms: copy []
create-room: has [ result ] [
result: to-string random/only 1000
either find rooms result
[ create-room ]
[ append rooms copy reduce [ result [] [] [] [] ]
]
return result
]
but after
create-room
create-room
the empty blocks after each result are actually the same
>> probe rooms
["127" [] [] [] [] "792" [] [] [] []]
>> insert rooms/2 "test"
== []
>> probe rooms
["127" ["test"] [] [] [] "792" ["test"] [] [] []]
How does one create unique empty blocks??
--
Graham Chiu