Go backward to Cons(): List Construction
Go up to Constructors

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)

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

Prev Up