The 'cdr' function returns the remainder of a list or list expression
after the first element of the list is removed. If the list is
(cdr '(a b c)) ; returns (B C) (cdr '((a b) c d)) ; returns (C D) (cdr NIL) ; returns NIL (cdr 'a) ; error: bad argument type (cdr '(a)) ; returns NIL (setq ben '(a b c)) ; set up variable BEN (cdr ben) ; returns (B C)
Note: Instead of 'cdr' you can also use the rest function if you find it easier to read or to remember. Both functions work exactly the same.
See the
cdr
function in the