mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-11 15:07:34 +02:00
Fixing bug in keyword-ref.
This commit is contained in:
parent
1d7866d468
commit
843943719a
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@
|
||||||
(define (keyword-ref ls key . o)
|
(define (keyword-ref ls key . o)
|
||||||
(let lp ((ls ls))
|
(let lp ((ls ls))
|
||||||
(if (and (pair? ls) (pair? (cdr ls)))
|
(if (and (pair? ls) (pair? (cdr ls)))
|
||||||
(if (eq? key (caar ls))
|
(if (eq? key (car ls))
|
||||||
(cadr ls)
|
(cadr ls)
|
||||||
(lp (cddr ls)))
|
(lp (cddr ls)))
|
||||||
(and (pair? o) (car o)))))
|
(and (pair? o) (car o)))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue