scm.mes: and: bugfix, return #f for (and #f 1 2 3).
This commit is contained in:
parent
6f40e02029
commit
c4d3d26f8d
3
scm.mes
3
scm.mes
|
@ -62,7 +62,8 @@
|
||||||
(define-macro (and . x)
|
(define-macro (and . x)
|
||||||
(cond ((null? x) #t)
|
(cond ((null? x) #t)
|
||||||
((null? (cdr x)) (car x))
|
((null? (cdr x)) (car x))
|
||||||
(#t `(cond (,(car x) (and ,@(cdr x)))))))
|
(#t `(cond (,(car x) (and ,@(cdr x)))
|
||||||
|
(#t #f)))))
|
||||||
|
|
||||||
(define (split-params bindings params)
|
(define (split-params bindings params)
|
||||||
(cond ((null? bindings) params)
|
(cond ((null? bindings) params)
|
||||||
|
|
Loading…
Reference in a new issue