Start work on new member record handling.
This commit is contained in:
parent
f295cd4802
commit
0d9a0a1d89
3 changed files with 84 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue