Re: A style question



On Feb 28, 8:03 am, Ken Tilton <kentil...@xxxxxxxxx> wrote:
Tim Bradshaw wrote:
[...]
Incidentally, I'm deeply disappointed in the quality of answers in
this thread. In the elder days there would have been at least a few
followups showing how to do this in the proper "FORMAT string
indistinguishable from line noise" way.

Oh, absolutely, long overdue in this thread. Is this going to become a
lost art? The village elders need to step up, methinks. I started
playing with it, but I am just an elder, not a Lisp elder. Screams for a
nested thingy, yes?

Well, if you're going to throw down the gauntlet like that, I'm
just going to have to respond in the hopes of provoking someone
into besting my wimpy attempt.

(apply #'format t "~@{ ~2@{~D ~}~^~*Fizz ~D ~*Buzz~
~*Fizz ~2@{~D ~} ~*Buzz ~D ~*Fizz~
~2@{~D ~} ~*FizzBuzz ~%~}"
(loop
:for i :from 1 to 100
:collect i))

Cheers,
Pillsy


.