Use month data type for joined key.
This commit is contained in:
parent
cd2a08e2ec
commit
5f62bb319e
3 changed files with 36 additions and 8 deletions
|
@ -28,6 +28,7 @@
|
|||
(module
|
||||
month
|
||||
(
|
||||
make-month
|
||||
month-valid?
|
||||
string->month
|
||||
month->string
|
||||
|
@ -44,6 +45,10 @@
|
|||
(chicken format)
|
||||
testing)
|
||||
|
||||
;; Simple wrapper for creating month representation as a list.
|
||||
(define (make-month y m)
|
||||
(list y m))
|
||||
|
||||
;; Returns true if this is a valid month representation - a list with
|
||||
;; two integer elements within the allowed range.
|
||||
(define (month-valid? m)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue