setcdr
setcdr(l_arg1l_arg2) =>l_result
Description
Replaces the tail of a list with the elements of a second list in the same way as rplacd. This is a destructive operation, meaning that any other reference to the list will also see the change.
Arguments
Value Returned
|
Modified l_arg1 with the |
Examples
x = '(a b c)
setcdr( x '(d e f))
=> (a d e f)
x
=> (a d e f)
The cdr of x is replaced by the second argument.
Related Topics
Return to top