Language Tyle
| Date: | 05/30/05 |
| Author: | Michiel Visser |
| URL: | http://www.parkserver.net/michiel/ |
| Comments: | 2 |
| Info: | n/a |
| Score: |
// 99 Bottles of beer, in Tyle (www.parkserver.net/michiel), using no libraries.
b = ?{" bottle",$!=1?"s"," of beer"};
c = ?{=$,!b};
puts{" on the wall, ".! { 99 .! $>0 ?! {!c,$2,!c,".\n Take one down, pass
it around, ",$-=1;!c," on the wall.\n"},
"No more",b(0),$2,"\ngo to the store and buy some
more.\n",c(99),".\n"}};
Download Source | Write Comment
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
b = ?{" bottle", $!=1 ? "s", " of beer"};
c = ?{ $, b! };
puts{" on the wall, ".! { 99 .! $>0 ?! {c!, $2, c!, ".\n Take one down, pass it around, ", $-=1; c!, " on the wall.\n" }, "No more", b(0), $2, "\ngo to the store and buy some more.\n", c(99), ".\n"}};