99 bottles of beer: Difference between revisions

Line 14,061:
 
defn paragraph(num): |
$(bottles (num) of beer on the wall,
$(bottles (num) of beer.
Take one down, pass it around.
$(bottles (num - 1)) of beer on the wall.
 
defn bottles(n):
cond:
(n == 0) : "'No more bottles"'
(n == 1) : "'1 bottle"'
=> : "$n bottles"
</syntaxhighlight>
 
55

edits