scm: Fix bug in assq-set!
* module/mes/scm.mes (assq-set!): Bugfix.
This commit is contained in:
parent
4d933001d5
commit
a8587b6453
|
@ -98,9 +98,9 @@
|
||||||
|
|
||||||
(define (assq-set! alist key val)
|
(define (assq-set! alist key val)
|
||||||
(let ((entry (assq key alist)))
|
(let ((entry (assq key alist)))
|
||||||
(cond (entry (set-cdr! entry val)
|
(if (not entry) (acons key val alist)
|
||||||
alist)
|
(let ((entry (set-cdr! entry val)))
|
||||||
(#t (cons (cons key val) alist)))))
|
alist))))
|
||||||
|
|
||||||
(define (assq-ref alist key)
|
(define (assq-ref alist key)
|
||||||
(let ((entry (assq key alist)))
|
(let ((entry (assq key alist)))
|
||||||
|
|
Loading…
Reference in a new issue