[REBOL] Re: Nested series?
From: govergard:hotma:il at: 20-Oct-2000 14:29
I just finished dealing with a problem like this. The viability of the
solution depends on whether you know what contains what. If it is totally
free format, it is slightly more complex (still doable, just need to include
additional information). Basically the solution is to declare the
structures you need with the paths they would require in a flat format, for
example
>> outside: [ path1 none path2 none]
== [path1 none path2 none]
>> inside: [ element1 none element2 none ]
== [element1 none element2 none]
>> to: copy outside
== [path1 none path2 none]
>> ti: copy inside
== [element1 none element2 none]
>> ti/element1: "hello"
== [element1 "hello" element2 none]
>> to/path1: ti
== [path1 [element1 "hello" element2 none] path2 none]
>> to/path1/element1
== "hello"
--hope this helps
Gary