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

[REBOL] Re: strings and things

From: chris::ross-gill::com at: 10-May-2001 16:48

Hi Terry & Joel,
> >> str: {word1 word2 "a string"} > == {word1 word2 "a string"} > >> blk: load join "[" [str "]"] > == [word1 word2 "a string"] > >> foreach item blk [print type? :item] > word > word > string > >>
Actually, all that is necessary is to do:
>> str: {word1 word2 "a string"}
== {word1 word2 "a string"}
>> blk: load str
== [word1 word2 "a string"]
>> type? blk
== block! - Chris