2.1.3. What Is Meant by Data?
Exercise 2.5

Representation of pairs using only numbers and arithmetic operations

Show that we can represent pairs of nonnegative integers using only numbers and arithmetic operations if we represent the pair a and b as the integer that is the product 2^a * 3^b. Give the corresponding definitions of the procedures cons, car, and cdr.



There are no comments yet.

Authentication required

You must log in to post a comment.

Login