99 Bottles of Beer/Lisp: Difference between revisions
m
moved to Common Lisp
No edit summary |
m (moved to Common Lisp) |
||
Line 58:
* <tt>~:P</tt> is for English plurals: it prints <tt>s</tt> if the last argument wasn't 1; it prints nothing otherwise. There's also <tt>~@P</tt> for <tt>y</tt>/<tt>ies</tt>, in case you were worried about that.
Note, by the way, how the emoticons <tt>:*~D</tt> and <tt>:P</tt> have shown up in the format string. FORMAT is so powerful, it's even self-aware about how silly it is.
===Alternate solution===
<!-- missing here:▼
=={{header|Emacs Lisp}}==▼
-->▼
Bit of a beginner in Lisp, but this seems to work:
<lang lisp>
Line 82 ⟶ 77:
(beer-verse 99)
</lang>
▲<!-- missing here:
▲=={{header|Emacs Lisp}}==
▲-->
=={{header|NewLISP}}==
|