]> gitweb.factorcode.org Git - factor.git/commitdiff
99-bottles: i got 99 bottles from 99..1
authorDoug Coleman <doug.coleman@gmail.com>
Thu, 30 Dec 2021 03:40:06 +0000 (21:40 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Thu, 30 Dec 2021 03:40:06 +0000 (21:40 -0600)
extra/99-bottles/99-bottles.factor

index 4adb3a33532f9d4c5d136dbb0b3067c912b4b105..e05df79744ad654ec678036f36521969a6e28037 100644 (file)
@@ -22,6 +22,6 @@ IN: 99-bottles
     "Go to the store and buy some more, 99 bottles of beer on the wall." print ;
 
 : 99-bottles ( -- )
-    99 [1..b] [ verse ] each last-verse ;
+    99 1 [a..b] [ verse ] each last-verse ;
 
 MAIN: 99-bottles