Copyright ©
2005 Suradet Jitprapaikulsarn
สงวนลิขสิทธิ์ 2548 สุรเดช จิตประไพกุลศาล
Homework 6 (Due Monday June 18, 2005)
For simplicity, we will use the following notation to represent samples
of a list (only for illustration)
{ 7, 9, 4 } = (make-LON 7 (make-LON 9 (make-LON 4 empty)))
- Write a function, concatenate,
to join two list of numbers into one list. For instance, if
your first list is { 2, 4, 6 } and your second list is { 8, 9, 10
}, then the resulting list is { 2, 4, 6, 8, 9, 10 }.
- Write a function, remove,
to remove all occurrences of a particular symbols from a list of
symbols. For instance, if your list is { 2, 5, 7, 2, 3, 4, 2 }
and you want to remove the number 2, then the resulting list is { 5, 7,
3, 4 }.
- Write a function, inList,
to check whether a particular student is in a list of student records.
- Write a function, count,
to count the number of a particular symbol in a list of symbols.