Anonymous user
Day of the week: Difference between revisions
→{{header|R}}: Adding REBOL example.
(added Ursala) |
(→{{header|R}}: Adding REBOL example.) |
||
Line 804:
years[xmas$wday==0]</lang>
2011 2016 2022 2033 2039 2044 2050 2061 2067 2072 2078 2089 2095 2101 2107 2112 2118
=={{header|REBOL}}==
<lang REBOL>REBOL [
Title: "Yuletide Holiday"
Author: oofoe
Date: 2009-12-07
URL: http://rosettacode.org/wiki/Yuletide_Holiday
]
for y 2008 2121 1 [
d: to-date reduce [y 12 25]
if 7 = d/weekday [prin [y ""]]
]</lang>
Output:
<pre>2011 2016 2022 2033 2039 2044 2050 2061 2067 2072 2078 2089 2095 2101 2107 2112 2118</pre>
=={{header|Ruby}}==
|