next up previous contents index
Next: Modifying Data Up: More on Generating Previous: Forming Subsets and

Combining Several Lists

At times you may want to combine several short lists into a single longer list. This can be done using the append   function. For example, if you have three variables x, y and z constructed by the expressions

(def x (list 1 2 3))
(def y (list 4))
(def z (list 5 6 7 8))
then the expression
(append x y z)
will return the list
(1 2 3 4 5 6 7 8).

Luke Tierney
Tue Jan 21 15:04:48 CST 1997