Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language REBOL

Date:04/20/05
Author:Anonymous
URL:n/a
Comments:1
Info:http://www.reboltech.com/library/script-script.html
Score: (4.50 in 449 votes)
REBOL [
    Title:   "99 Bottles of Beer Song"
    Date:    26-Apr-1998
    File:    %beersong.r
    Home:    http://www.reboltech.com/library/script-script.html
    Purpose: "The correct song. A bit more advanced."
    Category: [misc script 3]
    Note: {
        REBOL is pronounced like "rebel", and stands for
        Relative Expression-Based Object Language
    }
]

sing: func [count rest] [
    prin pick ["99 bottles " "no bottles " "1 bottle " [count "bottles "]]
        min 4 count + 2
    print rest
]

for bottles 99 0 -1 [
    sing bottles "of beer on the wall,"
    sing bottles "of beer."
    print pick [
        "Take one down, pass it around,"
        "Go to the store, buy some more,"
    ] bottles > 0
    sing bottles - 1 "of beer on the wall."
    print ""
]

Download Source | Write Comment

Alternative Versions

VersionAuthorDateCommentsRate
Generalized song dialectGregg Irwin07/06/051
series functionsNicolas06/22/101
network readNicolas06/22/100

Comments

>>  FriedaStevenson said on 06/05/10 17:21:16

FriedaStevenson I had got a dream to start my own organization, nevertheless I didn't have got enough amount of cash to do this. Thank goodness my fellow suggested to take the <a href="http://lowest-rate-loans.com/topics/business-loans">business loans</a>. Thence I used the consolidation loans and made real my dream.

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!

Name:

eMail:

URL:

Security Code:
  
Comment: