rplacd
rplacd(l_arg1l_arg2) =>l_result
Description
Replaces the tail of a list with the elements of a second list. This function does not create a new list; it alters the input list in the same way as setcdr. This is a destructive operation, meaning that any other reference to the list will also see the changes.
Arguments
Value Returned
|
Modified l_arg1 with the |
Examples
x = '(a b c)
rplacd( 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