rplaca
rplaca(l_arg1g_arg2) =>l_result
Description
Replaces the first element of a list with an object. This function does not create a new list; it alters the input list, in the same way as setcar. This is a destructive operation, meaning that any other reference to the list will also see the change.
Arguments
Value Returned
Examples
x = '(a b c)
rplaca( x 'd )
=> (d b c)
x
=> (d b c)
The car of x is replaced by the second argument.
Related Topics
Return to top