previous | index | next

Mutual Recursion

We will give the name odd-part to a procedure that returns the elements of a list that are in the odd numbered positions.

We will give the name even-part to a procedure that returns the elements of a list that are in the even numbered positions.

Q: The "odd part" of an empty list is what list?

A: The empty list

Q: How do we get the "odd part" of a nonempty list? (Hint: think of the "even part")

A:


previous | index | next