scm.mes: and: bugfix, return #f for (and #f 1 2 3).

This commit is contained in:
Jan Nieuwenhuizen 2016-07-17 12:14:46 +02:00
parent 6f40e02029
commit c4d3d26f8d

View file

@ -62,7 +62,8 @@
(define-macro (and . x)
(cond ((null? x) #t)
((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)
(cond ((null? bindings) params)