Name

set-cdr

Usage

builtin-function

Syntax

(set-cdr list item)

Description

Assigns the list item to the rest or cdr of list.

user 1 > (let z '(1 111))
it: (1 111)
user 2 > (set-cdr z '(111))
it: (111)
user 3 > z
it: (1 111)
user 4 > (macroexpand '(setf (cdr z) '(111)))
it: (set-cdr z '(111))