CS 3304 Spring 2001 Homework Assignment 3

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):

  1. Problem 3
  2. Problem 5
  3. 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).

copyright © 2001 Virginia Tech, ALL RIGHTS RESERVED
Last modified: April 23, 2001, 15:39:00 EDT, by Stephen H. Edwards <edwards@cs.vt.edu>