Chapter 3 stub.

This commit is contained in:
Elf M. Sternberg 2015-05-13 22:23:30 -07:00
parent 34fef03ba8
commit 0551a6fd4c
1 changed files with 10 additions and 0 deletions

10
chap3.rkt Normal file
View File

@ -0,0 +1,10 @@
(define (find-symbol id tree)
(call/cc
(lambda (exit)
(define (find tree)
(if (pair? tree)
(or (find (car tree)) (find (cdr tree)))
(if (eq? tree id) (exit #t) #f)))
(find tree))))