Created
December 17, 2012 03:12
-
-
Save yao2030/4315560 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(define (equal? list1 list2) | |
(cond ((null? list1) (null? list2)) | |
((null? list2) #f) | |
((eq? list1 list2) #t) | |
((eq? (car list1) (car list2)) (equal? (cdr list1) (cdr list2))) | |
(else #f))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment