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

How to Create a block of empty blocks?

 [1/4] from: tim::johnsons-web::com at: 18-Sep-2001 19:28


Hello All: I would like to initialize a block of given size with a number of empty blocks: example :
>> blks: make block! 3
== []
>> loop 3[append blks []]
== [] ; what I am try to get is: == [[][][]] What else do I need to do? TIA tim

 [2/4] from: tim:johnsons-web at: 18-Sep-2001 19:46


Never mind.... I forgot to use /only. I'm going to get some sleep now :>) zzzzzzzzzzzzzzzzzzzz... On Tue, Sep 18, 2001 at 07:28:39PM -0800, Tim Johnson wrote:
> Hello All: > I would like to initialize a block of given size with
<<quoted lines omitted: 13>>
> [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- Tim Johnson <[tim--johnsons-web--com]> http://www.johnsons-web.com

 [3/4] from: fsievert:uos at: 19-Sep-2001 16:04


Try
>> array [3 0]
== [[] [] []] CU, Frank On Tue, 18 Sep 2001, Tim Johnson wrote:

 [4/4] from: tim:johnsons-web at: 19-Sep-2001 8:49


On Wed, Sep 19, 2001 at 04:04:00PM +0200, Frank Sievertsen wrote:
> Try > > >> array [3 0] > == [[] [] []]
Thank you Frank, that's a better way. And I promise not to forget to use 'reduce for variable controls.... :>) regards tj
> CU, > Frank
<<quoted lines omitted: 32>>
> [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- Tim Johnson <[tim--johnsons-web--com]> http://www.johnsons-web.com

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted