When we remove an item from a list, we are always removing the one at
the front. This involves the following steps:
- get the value of the first item of the list
- create a new empty list
- make the new list an alias of the current list
- make the current list an alias of the rest of the new list
- make the rest of the new list empty
- delete the new list
Again, this is good material for an assignment.
Copyright © 2006-10-23 by Tak Auyeung