Loading...
 

lang5 Blog

99 bottles of beer on a wall in lang5

Published by ulmann on 2011-11-24
Some day it had to happen - the lang5 implementation of "99 bottles of beer" (without any sophisticated handling for plural/singular or the very last verse):

99 bottles of beer
: verse(*)
  " bottles of beer on the wall, " over
  " bottles of beer.\nTake one down and pass it around, " over 1 -
  " bottles of beer on the wall.\n\n" 6 compress "" join .
;

99 99 iota - verse