Find the last Sunday of each month: Difference between revisions
Find the last Sunday of each month (view source)
Revision as of 17:02, 18 January 2020
, 4 years ago→{{header|Factor}}: align stack effects
m (→{{header|Factor}}: tweak whitespace) |
m (→{{header|Factor}}: align stack effects) |
||
Line 1,147:
IN: rosetta-code.last-sunday
: parse-year ( -- ts
: print-last-sun ( ts --
: inc-month ( ts -- ts' ) 1 months time+ ;
: process-month ( ts -- ts' ) dup print-last-sun inc-month ;
: main (
MAIN: main</lang>
|