Re: cl-quiz
- From: "Tel A." <abrahamson.j@xxxxxxxxx>
- Date: 29 Apr 2006 15:30:50 -0700
A question in pertinance to the quiz:
How could one write a format directive something to the effect of
;wrong
(format nil "~r ~a~:p" 10 "apricot")
=> "10 apricots"
(format nil "~r ~a~:p" 1 "apricot")
=> "1 apricot"
I would like it to take two arguments, print the first one as a real
then print the second one, a string, with correct pluralization as per
the first argument.
Anyone done this before?
.
- Follow-Ups:
- Re: cl-quiz
- From: David Sletten
- Re: cl-quiz
- From: Geoffrey Summerhayes
- Re: cl-quiz
- References:
- [ANN] cl-quiz
- From: Marco Baringer
- [ANN] cl-quiz
- Prev by Date: Re: Crazy macro
- Next by Date: Re: the bipolar Lisp programmer
- Previous by thread: Re: [ANN] cl-quiz
- Next by thread: Re: cl-quiz
- Index(es):
Relevant Pages
|