Contents    Prev    Next    Page+10    Index   

List

A list is made of two-element data structures, called conses after the function cons that makes them.

A list is written inside parentheses:


(list 'a 'b 'c)         ->  (a b c)


(list (+ 2 3) (* 2 3))  ->  (5 6)

We will use the parentheses notation for lists, and nested lists for trees.