[Home] [Syllabus] [Assignments] [Resources]
This page contains problem set assignments for the course. The assignments will be added as they become available.
(define traverse (lambda (combine do seed)
(lambda (x)
(cond ((eq? x '()) seed)
(#t (combine (do (car x))
((traverse combine do seed) (cdr x))))))))
(define mapsquare (traverse cons (lambda (x) (* x x)) '()))
(mapsquare '(1 -2 3))
Solutions for the Scheme problems