setcar
setcar(l_arg1g_arg2) =>l_result
Description
Replaces the first element of a list with an object in the same way as rplaca. 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)
=> (a b c)
setcar( x 'd )
=> (d b c)
x
=> (d b c)
The car of x is replaced by the second argument.
Related Topics
Return to top