\"\" \"\" \"\"
Go backward to Cons(): List Construction
Go up to Constructors
RISC-Linz logo

cons(): List Construction (Binding Form)

l.cons(h, t)
      T h
      List<T> t

Specification: Binds l to a list with head element h and tail list t.

Complexity: O(1)

Note: This operation is more efficient than the otherwise equivalent form 

l = Cons(h, t)

Author: Wolfgang Schreiner
Last Modification: April 12, 1997