nbutlast
(nbutlast list &optional n)
The DESTRUCTIVE butlast: the last n conses (one by default) are cut off list itself with an rplacd, and the same list is returned. When nothing would be left the answer is nil and the argument is untouched, since there is no cell to cut. The argument must not be used afterwards except through the returned value.