Function: cdr
cdr is a function defined in data.c.
Signature
(cdr LIST)
Documentation
Return the cdr of LIST. If LIST is nil, return nil.
Error if LIST is not nil and not a cons cell. See also cdr-safe.
See Info node (elisp)Cons Cells for a discussion of related basic Lisp concepts such as cdr, car, cons cell and list.
Other relevant functions are documented in the list group.
Probably introduced at or before Emacs version 1.2.
Shortdoc
;; list
(cdr '(one two three))
=> (two three)
(cdr '(one . two))
=> two
(cdr nil)
=> nil
Aliases
rest (obsolete since 27.1)
cl-rest
transient--suffix-props
dired-get-subdir-min (obsolete since 27.1)
ad-lambdafy
cmpl-prefix-entry-tail
Source Code
// Defined in /usr/src/emacs/src/data.c
{
return CDR (list);
}