Re: cl-quiz



Ari Johnson wrote:

"Geoffrey Summerhayes" <sumrnot@xxxxxxxxxxxxxxxxx> writes:


(format nil "~r ~a~:2*~P" 1 "apricot")


(format nil "~r ~a~2:*~P of beer on the wall" 99 "bottle")

Transpose the 2 and colon. Of course, #'format doesn't seem to be
smart enough to talk about puppies or children. ;)

Well, yes and no:
(format nil "~r ~a~:*~:@p of beer on the wall" 99 "pupp") => "ninety-nine puppies of beer on the wall"

(format nil "~r ~a~:*~:@p of beer on the wall" 1 "fl") => "one fly of beer on the wall"

Whatever that means... :)

Aloha,
David Sletten

.



Relevant Pages

  • Re: Ruby beginner Problem
    ... Thanks Lasitha that worked perfect. ... beer on the wall" ... hitting == will format the current line. ...
    (comp.lang.ruby)
  • Which DVD Players Supprt AVI format?
    ... players support that format? ... Aleph-null bottles of beer on the wall, ...
    (rec.video.dvd.players)
  • Re: cl-quiz
    ... Transpose the 2 and colon. ... #'format doesn't seem to be ... smart enough to talk about puppies or children. ...
    (comp.lang.lisp)
  • Re: cl-quiz
    ... Transpose the 2 and colon. ... #'format doesn't seem to be ... smart enough to talk about puppies or children. ...
    (comp.lang.lisp)