CSC 270 - Survey of Programming Languages

Assignment #25 - Searching a List for an Item

Due Monday, December 11, 2017

You are going to write a program that will search a list for an item x, where x is whatever the user specifies. E.g., if the user types in the Interactions window,

(contains-x? (list 'doll 'boat' 'ball) 'ball)
your program will print true

Test your program with several different values of x and different lists.

[Back to the Assignment List]