copy-tree

copy-tree is a compiled Lisp function in `subr.el'.

(copy-tree TREE &optional VECP)

Make a copy of TREE.
If TREE is a cons cell, this recursively copies both its car and its cdr.
Contrast to `copy-sequence', which copies only along the cdrs. With second
argument VECP, this copies vectors as well as conses.