[REBOL] Re: Merry Christmas
From: chaz:innocent at: 24-Dec-2001 3:25
Merry Christmas to you!
Here's a classic from the script archive at www.REBOL.com
REBOL [
Title: "Twelve Days of Christmas"
Date: 14-Dec-1999
File: %twelvedays.r
Category: [text 3]
]
Twelve_Days: make object! [
Sing: function [] [Gift Christmas_Days] [
Gift: function [Day [integer!]] [Gifts Gift] [
Gifts: [
"a partridge in a pear tree"
"two turtle doves"
"three french hens"
"four calling birds"
"five golden rings"
"six geese a-laying"
"seven swans a-swimming"
"eight maids a-milking"
"nine ladies dancing"
"ten lords a-leaping"
"eleven pipers piping"
"twelve drummers drumming"
]
Gift: make string! 100
until [
append Gift rejoin [
Gifts/:Day
either 1 < Day [","] ["."]
either 2 = Day [" and"] [{}]
newline
]
Day: Day - 1
Day < 1
]
Gift
]
Christmas_Days: [
"first"
"second"
"third"
"fourth"
"fifth"
"sixth"
"seventh"
"eighth"
"ninth"
"tenth"
"eleventh"
"twelfth"
]
repeat Day length? Christmas_Days [
print rejoin [
"On the " Christmas_Days/:Day " day of Christmas,"
newline
"my true love gave to me:"
newline
Gift Day
]
]
print "Merry Christmas and a Happy New Year!"
]
]
Twelve_Days/Sing
chaz
----- Original Message -----
From: "Dr. Louis A. Turk" <[louisaturk--eudoramail--com]>
To: <[rebol-list--rebol--com]>
Sent: Sunday, December 23, 2001 5:38 PM
Subject: [REBOL] Merry Christmas
Dear fellow rebolutionaries,
I would just like to say that I really appreciate all the help that I have
received on this mail list during this past year. While I am still just an
amateur, I have made a lot of progress thanks to all your kind help. And
as a result my computer is becoming increasing productive in my work. I am
accomplishing things with rebol that I never dreamed I would be able to do.
Mostly my posts have been asking, and not giving much in return. Yet your
answers have always been most gracious. Often you have even made a working
function for me, as an example. This is the best email list I have ever
been on. Many, many thanks to you all.
May God bless you all with a very merry Christmas!
Louis