HW_2_Solutions

HW_2_Solutions - find s then it returns an empty list,...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
SOLUTIONS: HOMEWORK 2 1. Chapter 15 Problem Set 5 Correct Answer: A sequence of symbols is similar to a list in the sense that it is an  ordered set.  However, it needs functions similar to CAR and CDR to navigate through the  list. 2. Chapter 15 Problem Set 6 Correct Answer: This function searches for the first occurrence of ‘s’ in the list ‘lis’.  If the functions does not 
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: find s then it returns an empty list, otherwise it returns the rest of of list lis beginning with s. 3. Chapter 15 Problem Set 7 Correct Answer: This function returns the count of the atoms present in the list lis and any of the sublists of lis....
View Full Document

Ask a homework question - tutors are online