Re: A style question
- From: "Tim Bradshaw" <tfb+google@xxxxxxxx>
- Date: 28 Feb 2007 08:53:42 -0800
On Feb 28, 3:40 pm, Richard M Kreuter <kreu...@xxxxxxxxx> wrote:
(dotimes (i 100)
(format t "~[~[FizzBuzz~:;Fizz~]~:;~[Buzz~:;~D~]~]~%" (mod i 3) (mod i 5) i))
Best I could do on one cup of coffee.
Good, but you'd get extra points for avoiding the explicit FizzBuzz in
there. Off the top of my head I think:
(format t "~&~[Fizz~;~]~[Buzz~;~D~]~%" (mod i 3) (mod i 5) i). But
I'd have to check, and it's not really squiggly enough.
--tim
.
- Follow-Ups:
- Re: A style question
- From: Richard M Kreuter
- Re: A style question
- References:
- A style question
- From: job-271842874
- Re: A style question
- From: Frank Buss
- Re: A style question
- From: job-271842874
- Re: A style question
- From: Tim Bradshaw
- Re: A style question
- From: Richard M Kreuter
- A style question
- Prev by Date: Re: eql faster than = (integer comparison on sbcl)?
- Next by Date: Re: eql faster than = (integer comparison on sbcl)?
- Previous by thread: Re: A style question
- Next by thread: Re: A style question
- Index(es):