Function: cl-nsubst
cl-nsubst is an autoloaded and byte-compiled function defined in
cl-seq.el.gz.
Signature
(cl-nsubst NEW OLD TREE [KEYWORD VALUE]...)
Documentation
Substitute NEW for OLD everywhere in TREE (destructively).
Any element of TREE which is eql to OLD is changed to NEW (via a call
to setcar).
Keywords supported: :test :test-not :key
Aliases
nsubst (obsolete since 27.1)
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/cl-seq.el.gz
;;;###autoload
(defun cl-nsubst (cl-new cl-old cl-tree &rest cl-keys)
"Substitute NEW for OLD everywhere in TREE (destructively).
Any element of TREE which is `eql' to OLD is changed to NEW (via a call
to `setcar').
\nKeywords supported: :test :test-not :key
\n(fn NEW OLD TREE [KEYWORD VALUE]...)"
(apply 'cl-nsublis (list (cons cl-old cl-new)) cl-tree cl-keys))