Go backward to Null(): Test for Empty List
Go up to Selectors
Go forward to Tail(): Tail List

Head(): Head Element

h = Head(l)
      T h
      List<T> l

Specification: Returns the head element h of l.

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

Complexity: O(1).


Wolfgang.Schreiner@risc.uni-linz.ac.at
Id: main.tex,v 1.10 1996/04/04 11:45:47 schreine Exp

Prev Up Next