\"\" \"\" \"\"
Go up to Destructive Updating
Go forward to tail(): Update Tail List
RISC-Linz logo

head(): Update Head Element

l.head(h)
      List<T> l
      T h

Specification: Destructively updates the head element of l by e.

Constraints: It is illegal to apply head to an empty l.

Complexity: O(1).


Author: Wolfgang Schreiner
Last Modification: April 12, 1997