(rontolisp) docs
← Functions

copy-tree

(copy-tree tree)

Returns a deep copy of a cons tree: every cons cell is fresh, while non-cons leaves (numbers, symbols, strings, ...) are shared with the original. Compare copy-list, which copies only the top-level spine.