[REBOL] How to append a block to a serie or array of blocks ?
From: pat665::ifrance::com at: 10-Dec-2001 22:06
Is it OK if I post some short Q&A about Rebol to the list for validation ?
Here is an other example. I will continue depending on the feed back I will get.
How to append a block to a serie or array of blocks ?
>> a: array [2 2]
== [[none none] [none none]]
>> b: func [n][compose [(n) (n)]]
>> b 3
== [3 3]
>> append a b 3
== [[none none] [none none] 3 3]
However b 3 returns a block, append will use only the values.
>> append/only a b 3
== [[none none] [none none] 3 3 [3 3]]
The /only refinement is an answer to this problem.