Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] How to append a block to a serie or array of blocks ?

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.