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

[REBOL] How-to initialize multiple empty blocks

From: martin:middleton:speechworks at: 27-Aug-2001 12:15

Here's what I'm trying to do: Let's say I have 3 objects named table1, table2, and table3. In the interest of efficiency, I'm trying to pre load all 3 tables with the same data, for example, a bunch of zeros. (I know I can do this at the time I create the objects, but as a learning experience I'm trying to do this in a simple for loop.) The following doesn't do what I want, so how do I fix it? tables: [table1 table2 table3] foreach table tables [loop 10 [append table 0]] All help is appreciated in advance. - martin