[REBOL] Re: Vertical formatting etc
From: joel:neely:fedex at: 3-Oct-2001 5:56
Hi, Carl,
Carl Read wrote:
> Or you could try the under-the-top version...
>
> >> reduce [reform ["Put" "them" "together"]]
> == ["Put them together"]
>
Thanks for the reminder!
> Joel slaps head! (; (Unless he was being horribly cruel...:)
>
> Use 'rejoin instead of 'reform if you don't want spaces between
> the strings...
>
Not trying to be cruel, just flexible... If the next question
is, "Now how do I put commas between them?" you just replace the
with "," in all of the code samples.
> 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]
but don't see why anyone would want to do this!
-jn-
--
; Joel Neely [joel--neely--fedex--com] 901-263-4460 38017/HKA/9677
REBOL [] foreach [order string] sort/skip reduce [ true "!"
false head reverse "rekcah" none "REBOL " prin "Just " "another "
] 2 [prin string] print ""