Last active
August 29, 2015 14:11
-
-
Save zestime/247231c936f2bb2ec426 to your computer and use it in GitHub Desktop.
SICP Solution
This file contains 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
(list 'a 'b 'c) ; '(a b c) | |
(list (list 'george)) ; '((george)) | |
(cdr '((x1 x2) (y1 y2))) ; '((y1 y2)) | |
(cadr '((x1 x2) (y1 y2))) ; '(y1 y2) | |
(pair? (car '(a short list))) ; #f | |
(memq 'red '((red shoes) (blue socks))) ; #f | |
(memq 'red '(red shoes blue socks)) ; '(red shoes blue socks) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment