use append/only in the second snippet

--maarten

[EMAIL PROTECTED] wrote:
> Hi,
> How can I create blocks in a block like the first code snippet here
> but doing it dynamically like the second exampel?
> d should be the same as b.
> 
> b: make block! [["a" "b"]]
> b: append b [["c" "d"]]
> probe b => [["a" "b"] ["c" "d"]]
> 
> c: [["a" "b"] ["c" "d"]]
> d: make block! []
> foreach cc c [
>       d: append d cc
> ]
> probe d => ["a" "b" "c" "d"]
> 
> /Mikael


-- 
Maarten Koopmans
Innovation manager      tel:   +31 30 2 305 324
Surfnet BV              fax:   +31 30 2 305 329
P.O.Box 19035           email: [EMAIL PROTECTED]
NL-3501 DA Utrecht      http://www.surfnet.nl
The netherlands

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

Reply via email to