Skip to content

Instantly share code, notes, and snippets.

@zestime
Last active August 29, 2015 14:11
Show Gist options
  • Save zestime/247231c936f2bb2ec426 to your computer and use it in GitHub Desktop.
Save zestime/247231c936f2bb2ec426 to your computer and use it in GitHub Desktop.
SICP Solution
(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