Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
12
Task/Five-weekends/Oforth/five-weekends.oforth
Normal file
12
Task/Five-weekends/Oforth/five-weekends.oforth
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
: fiveWeekEnd(y1, y2)
|
||||
| y m |
|
||||
|
||||
ListBuffer new
|
||||
y1 y2 for: y [
|
||||
Date.JANUARY Date.DECEMBER for: m [
|
||||
Date.DaysInMonth(y, m) 31 ==
|
||||
[ y, m, 01 ] asDate dayOfWeek Date.FRIDAY == and
|
||||
ifTrue: [ [ y, m ] over add ]
|
||||
]
|
||||
]
|
||||
dup size println dup left(5) println right(5) println ;
|
||||
Loading…
Add table
Add a link
Reference in a new issue