99 Bottles of Beer/Lisp: Difference between revisions
Content added Content deleted
No edit summary |
m (moved to Common Lisp) |
||
Line 58: | 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. |
* <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. |
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=== |
|||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|Lisp}}== |
|||
Bit of a beginner in Lisp, but this seems to work: |
Bit of a beginner in Lisp, but this seems to work: |
||
<lang lisp> |
<lang lisp> |
||
Line 82: | Line 77: | ||
(beer-verse 99) |
(beer-verse 99) |
||
</lang> |
</lang> |
||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|NewLISP}}== |
=={{header|NewLISP}}== |