[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 99 bottles of beer on the wall
From: |
Michael Ellis |
Subject: |
Re: 99 bottles of beer on the wall |
Date: |
Sat, 19 Feb 2011 21:07:09 -0500 |
On Sat, Feb 19, 2011 at 6:24 PM, Graham Percival
<address@hidden> wrote:
>
> Wow. Brilliant work here:
> http://99-bottles-of-beer.net/language-lilypond-1351.html
Pretty cool! I wonder if the number lookups could be simplified with
the 'r' format spec?
(use-modules (ice-9 format))
(string-split (format #f "~r" 99) #\-) ==> ("ninety" "nine")
The syllabification alist would still be needed, of course.
Cheers,
Mike