GNU Info

Info Node: (librep.info)Lists

(librep.info)Lists


Next: Vectors Prev: Cons Cells Up: Sequences
Enter node , (file) or (file)node

Lists
-----

   A list is a sequence of zero or more objects, the main difference
between lists and vectors is that lists are more dynamic: they can
change size, be split, reversed, concatenated, etc... very easily.

   In Lisp lists are not a primitive type; instead singly-linked lists
are formed by chaining cons cells together (Note: Cons Cells). The
empty list is represented by the special value `()'.

 - Function: listp arg
     This functions returns true when its argument, ARG, is a list
     (i.e. either a cons cell or `()').

 - Function: null arg
     Returns a true value if ARG is the empty list.

List Structure
How lists are built from cons cells
Building Lists
Dynamically creating lists
Accessing List Elements
Getting at the elements which make the list
Modifying Lists
How to alter the contents of a list
Association Lists
Lists can represent relations
Infinite Lists
Circular data structures in Lisp

automatically generated by info2www version 1.2.2.9