Language Frink
(Shorter alternative by Frink's author)
Date: | 04/12/07 |
Author: | Alan Eliasen |
URL: | http://futureboy.us/ |
Comments: | 0 |
Info: | http://futureboy.us/frinkdocs/ |
Score: | (3.00 in 18 votes) |
for n = 99 to 0 step -1 { str = getBottleString[n] println[str + " of beer on the wall, " + lc[str] + " of beer."] if (n == 0) println["Go to the store and buy some more, 99 bottles of beer on the wall."] else println["Take one down and pass it around, " + lc[getBottleString[n-1]] + " of beer on the wall.\n"] } getBottleString[n] := (n==0 ? "No more" : n) + " bottle" + (n==1 ? "" : "s")
Download Source | Write Comment
Alternative Versions
Version | Author | Date | Comments | Rate |
---|---|---|---|---|
Demonstrates units of measure in Frink | Alan Eliasen | 05/17/11 | 0 |
Download Source | Write Comment
Add Comment
Please provide a value for the fields Name,
Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.
Please don't post large portions of code here! Use the form to submit new examples or updates instead!
Comments