[bigfix] circular-list?
Fix a bug in circular-list?
This commit is contained in:
+1
-1
@@ -55,7 +55,7 @@
|
||||
(define (circular-list? x)
|
||||
(and (pair? x)
|
||||
(let rec ((lst (cdr x)))
|
||||
(cond ((not-pair?) #f)
|
||||
(cond ((not-pair? lst) #f)
|
||||
((null? lst) #f)
|
||||
((eq? x lst) #t)
|
||||
(else (rec (cdr lst)))))))
|
||||
|
||||
Reference in New Issue
Block a user