[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 99 bottles



Daniel Weinreb <DLWeinreb@attbi.com> writes:

> They both handle "no bottles", but they also both blow it with "one
> bottles".  Oh well.

I think that's acceptable, given the nature of the problem.

<!-- Bruce Lewis doubts he could use correct grammar after 98 beers. -->
<!-- http://brl.codesimply.net/ -->

[(let drink ((bottles 99))
   (brl-when (positive? bottles)
     ]<p>[bottles] bottles of beer on the wall;
      [bottles] bottles of beer!<br>
      Take one down, pass it around;
      [(- bottles 1)] bottles of beer on the wall!</p>
[    (drink (- bottles 1))))