You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
327 B
22 lines
327 B
2 years ago
|
|
||
|
Exercise 2.5: 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.
|