Subject: Re: easy plural formatting question
From: Erik Naggum <erik@naggum.net>
Date: Tue, 11 Dec 2001 20:25:41 GMT
Newsgroups: comp.lang.lisp
Message-ID: <3217091140111702@naggum.net>

* Myriam Abramson <mabramso@osf1.gmu.edu>
| How do I form the plural of "inch" to "inches"?

(dotimes (inches 5)
  (format t "~&~D inch~:*~[es~;~:;es~]" inches))
0 inches
1 inch
2 inches
3 inches
4 inches
  
///
-- 
  The past is not more important than the future, despite what your culture
  has taught you.  Your future observations, conclusions, and beliefs are
  more important to you than those in your past ever will be.  The world is
  changing so fast the balance between the past and the future has shifted.