Stepping Down a List
It is often necessary to write functions that step down a list,
processing the list elements one at a time.
- First, use pair? or null? to test
whether the end of the list has been reached. If the end has been
reached, return the answer.
- If the list is not null?, process the
car of the list.
- Then set the list to its cdr and continue.