Ticket #859 (closed defect: fixed)
A bug in CL:EVERY with list (rest list).
| Reported by: | pjb@… | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | IDE | Version: | 1.6 |
| Keywords: | every | Cc: |
Description
Here is what is expected:
[pjb@kuiper :0 swig]$ clisp -norc -ansi -q [1]> (defun diff1p (lon)
(every (lambda (a b)
(print (list a b (= 1 (- a b)))) (= 1 (- a b)))
lon (rest lon)))
DIFF1P [2]> (diff1p '(6 5 4 3 2 1))
(6 5 T) (5 4 T) (4 3 T) (3 2 T) (2 1 T) T [3]> (quit)
Here is what we get with ccl:
[pjb@kuiper :0 swig]$ ccl -norc Welcome to Clozure Common Lisp Version 1.6-RC1-r14432M (LinuxX8664)! ? (defun diff1p (lon)
(every (lambda (a b)
(print (list a b (= 1 (- a b)))) (= 1 (- a b)))
lon (rest lon)))
DIFF1P ? (diff1p '(6 5 4 3 2 1))
(6 5 T) (4 5 NIL) NIL ? (quit) [pjb@kuiper :0 swig]$ ccl --version Version 1.6-RC1-r14432M (LinuxX8664)
