Skip to content

Instantly share code, notes, and snippets.

@mikamix
Created January 30, 2014 10:56
Show Gist options
  • Select an option

  • Save mikamix/8706338 to your computer and use it in GitHub Desktop.

Select an option

Save mikamix/8706338 to your computer and use it in GitHub Desktop.
(define (equal? xs ys)
(cond ((and (null? xs) (null? ys)) #t)
(else (and (not (null? xs)) (not (null? ys))
(eq? (car xs) (car ys))
(equal? (cdr xs) (cdr ys))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment