Function: -clone
-clone is a byte-compiled function defined in dash.el.
Signature
(-clone LIST)
Documentation
Create a deep copy of LIST.
The new list has the same elements and structure but all cons are replaced with new ones. This is useful when you need to clone a structure such as plist or alist.
Source Code
;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -clone (list)
"Create a deep copy of LIST.
The new list has the same elements and structure but all cons are
replaced with new ones. This is useful when you need to clone a
structure such as plist or alist."
(declare (side-effect-free t))
(-tree-map #'identity list))