Work on calendar formatting.

This commit is contained in:
Dominik Pantůček 2023-03-27 21:18:11 +02:00
parent 2a6b364b4a
commit 3e9b421f60
3 changed files with 45 additions and 1 deletions

View file

@ -29,6 +29,8 @@
month
(
make-month
month-year
month-month
month-valid?
string->month
month->string
@ -52,6 +54,10 @@
(define (make-month y m)
(list y m))
;; Accessors
(define month-year car)
(define month-month cadr)
;; Returns true if this is a valid month representation - a list with
;; two integer elements within the allowed range.
(define (month-valid? m)