Re: cl-quiz



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?

.



Relevant Pages

  • Count Answers
    ... I´ve made a quiz game and now I want to count the incorrect and the correct ... String heading; ... String geoquestion; ...
    (comp.lang.java.programmer)
  • Count my answers?
    ... I´ve made a quiz game and now I want to count the incorrect and the correct ... String heading; ... String geoquestion; ...
    (comp.lang.java.help)
  • [QUIZ] Twisting a Rope (#137)
    ... The three rules of Ruby Quiz: ... This week's task is to implement the Rope data structure as a Ruby class. ... You may not realize it, but for many changes the content to a String, Ruby ...
    (comp.lang.ruby)
  • Re: Lisp Challenge
    ... interested to see how people tackle the string manipulation as its ... For example with a 9x9 array, ... version from a stream as the quiz problem requests. ... for char = while char ...
    (comp.lang.lisp)
  • Re: [QUIZ] DayRange (#92)
    ... Please do not post any solutions or spoiler discussion for this quiz until ... Support Ruby Quiz by submitting ideas as often as you can: ... into a more human-readable string. ... Here are some example lists of days and their expected returned strings: ...
    (comp.lang.ruby)