[REBOL] Re: Vertical formatting etc
From: carl:cybercraft at: 4-Oct-2001 11:18
On 03-Oct-01, Joel Neely wrote:
>> If however the formatting was wanted in the block, then I don't
>> think it can be done, as this suggests...
> I believe that it can,
>>> whatever: [a b c]
> == [a b c]
>>> use [buf del] [
> [ buf: ""
> [ del: "["
> [ foreach item whatever [
> [ append buf rejoin [del item]
> [ del: "^/^-"
> [ ]
> [ append buf "]"
> [ thingie: load buf
> [ ]
> == [a
> b
> c]
>>> thingie
> == [a
> b
> c]
I stand corrected.
> but don't see why anyone would want to do this!
For code that generates code, perhaps, and they want it nicely
formatted? I doubt that's why this question was asked though...
> -jn-
--
Carl Read