How to append a block to a serie or array of blocks ?
[1/2] from: pat665::ifrance::com at: 10-Dec-2001 22:06
Hi, all
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 ?
Short answer:
Using append/only
Problem illustration:
>> 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.
Problem resolution:
>> append/only a b 3
== [[none none] [none none] 3 3 [3 3]]
The /only refinement is an answer to this problem.
[2/2] from: greggirwin:mindspring at: 12-Dec-2001 12:02
hi Patrick,
<< Is it OK if I post some short Q&A about Rebol to the list for validation
? >>
Unless someone from RT tells you otherwise, go ahead.
<< How to append a block to a serie or array of blocks ?
Short answer:
Using append/only >>
Yes, that's correct.
--Gregg