Common Lisp/Reference/cdr

From Wikibooks, open books for an open world
Jump to navigation Jump to search

The cdr operator, along with car, is one of the basic building blocks of Common Lisp which are used to build cons cells.

The cdr operator, when applied to a list, returns the remainer of that list. For example:

 (cdr (list 1 2 3 4 5))
(2 3 4 5)

See also

[edit | edit source]