Anonymous user
Day of the week: Difference between revisions
→{{header|Emacs Lisp}}: simplify
(→{{header|Elixir}}: add Emacs Lisp) |
(→{{header|Emacs Lisp}}: simplify) |
||
Line 1,574:
(defun sunday-p (y)
"Is Dec 25th a Sunday in this year?"
(if (= (calendar-day-of-week (list 12 25 y)) 0)
(defun xmas-sunday (a b)
"In which years in the range a, b is Dec 25th a Sunday?"
(seq-filter
(print (xmas-sunday 2008 2121))</lang>
|