sicp-2.3.1-2.3.2
Posted on 2015-02-20 19:41:41 +0900 in SICP
2.54
(define (equal? a b)
(cond ((and (pair? a) (pair? b))
(and (equal? (car a) (car b))
(equal? (cdr a) (cdr b))))
((and (not (pair? a)) (not (pair? b)))
(eq? a b))
(else #f)))
2.55
(car ''abracadabra)
-->
(car (quote (quote abracadabra)))
-->
'quote
Hide Comments
comments powered by Disqus