We are only adding items to the beginning of a list. The operation
will involve the following steps:
- create a new empty list
- set the new item as the first value of the new list
- change the rest of the new list to the current list
- alias the current list to be the new list
- alias the new list to be the empty list
- delete the new list
The actual code is not supplied because it makes a good homework
assignment.
Copyright © 2006-10-23 by Tak Auyeung