Skip to main content.
-->
July 7th, 2007

Solution to SICP Exercise 2.7

Structure and Interpretation of Computer Programs

A solution to Exercise 2.7:

(define (upper-bound interval) (cdr interval))
(define (lower-bound interval) (car interval))

Posted by Ken Dyck in Programming

1 Comment »

This entry was posted on Saturday, July 7th, 2007 at 10:17 am and is filed under Programming. You can follow any responses to this entry through the comments RSS 2.0 feed. You can leave a response, or trackback from your own site.

One Response to “Solution to SICP Exercise 2.7”

  1. nil says:

    is that the right definition for upper-bound? e.g. would it work for this interval?
    (a (b c))

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>