From a list of item '(joe barney cathy kevin stephy ...) I
want a formated output like this:
joe barney
cathy kevin
stephy ...
...
In other words, I want a formated output in two (or more)
columns, each separated by a tabulation. I don't know if the
number of items is odd or even. I can do it with a simple
function but can I do it within a single format expression? I
have read some doc about the ~[~] and ~{~} directives but, in
despite of a lot of tentatives, I can't do anything.
newLISP
(set 'lst '("joe" "barney" "cathy" "kevin" "stephy" "thomas" "bob"))
(dolist (two (explode (append lst '("")) 2 true))
(println (format "%s\t%s" two)))
joe barney
cathy kevin
stephy thomas
bob
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)