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

[REBOL] Block building

From: landi:mac at: 24-Nov-2002 14:28

Hi all, I am relatively new to REBOL and would like to know what is considered best practice in the following situation: Given the following object:
>> probe Object1
make object! [ String1: "ABC" Block1: ["DEF" "GHI"] Block2: ["JKL" "MNO" "PQRSTUVWXYZ"] ] I need to build a block containing all of the string fields: ["ABC" "DEF" "GHI" "JKL" "MNO" "PQRSTUVWXYZ"] I have found two ways to do it:
>> compose [(Object1/String1) (Object1/Block1) (Object1/Block2)]
>> head insert (union Object1/Block1 Object1/Block2) Object1/String1
Comments? Suggestions? Thanks, Ted