Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

compilation error on circular-list? #32

Closed
nyuichi opened this issue Feb 7, 2014 · 1 comment
Closed

compilation error on circular-list? #32

nyuichi opened this issue Feb 7, 2014 · 1 comment
Labels

Comments

@nyuichi
Copy link
Member

nyuichi commented Feb 7, 2014

According to @stibear below code does not work on picrin.

(define (circular-list? x)
    (let rec ((lst (cdr x)))
      (cond ((null? lst) #f)
        ((eq? x lst) #t)
        (else (rec (cdr lst))))))
; * * * * compilation error: invalid expression given
@nyuichi nyuichi added the bug label Feb 7, 2014
@nyuichi
Copy link
Member Author

nyuichi commented Feb 7, 2014

The cause is found that cond doesn't support else syntax. fixed in f051de7.

@nyuichi nyuichi closed this as completed Feb 7, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant