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.
10 lines
342 B
10 lines
342 B
2 years ago
|
|
||
|
Exercise 1.41: Define a procedure double
|
||
|
that takes a procedure of one argument as argument and returns a procedure that
|
||
|
applies the original procedure twice. For example, if inc is a
|
||
|
procedure that adds 1 to its argument, then (double inc) should be a
|
||
|
procedure that adds 2. What value is returned by
|
||
|
|
||
|
|
||
|
(((double (double double)) inc) 5)
|