Start work on new member record handling.

This commit is contained in:
Dominik Pantůček 2023-03-25 15:08:06 +01:00
parent f295cd4802
commit 0d9a0a1d89
3 changed files with 84 additions and 3 deletions

View file

@ -44,9 +44,12 @@
(chicken base)
testing)
;; Returns an empty dictionary represented as empty list.
(define (make-dict)
'())
;; Returns an empty dictionary represented as empty list or a list of
;; pre-initialized cons pairs.
(define (make-dict . pairs)
(if (null? pairs)
'()
(car pairs)))
;; Checks whether given dictionary d contains the key k.
(define (dict-has-key? d k)