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

[REBOL] Re: Quick print question

From: anton:lexicon at: 7-Apr-2002 18:01

It is unclear exactly what you want Charles, but perhaps this will do the trick. print-lines: func [blk [block! string!]][ if string? blk [blk: parse/all blk "^/"] foreach line blk [print line] ]
>> print-lines ["line 1" "line 2" "line 3"]
line 1 line 2 line 3
>> print-lines {line 1^/line 2^/^/"line 4"}
line 1 line 2 line 4 <- notice the quotes are gone, however. Anton.