 |
 |
 |
 |
30 Points Due: 2/07/01 at the start of class
Complete each of the following
problems in the Chapter 14 Problem Set (pp.
602-603 of the text):
- Problem 3
- Problem 5
- Write your own implementation of the Scheme built-in function
list-head :
(list-head list k)
Returns a newly allocated list consisting of the first k
elements of list. K must not be greater than the
length of list.
Name your function my-list-head , since
list-head is already provided as a standard
operation in Scheme (you may not use list-head ,
list-tail , or sublist in your solution).
|