Function: -replace
-replace is a byte-compiled function defined in dash.el.
Signature
(-replace OLD NEW LIST)
Documentation
Replace all OLD items in LIST with NEW.
Elements are compared using equal.
See also: -replace-at
Source Code
;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -replace (old new list)
"Replace all OLD items in LIST with NEW.
Elements are compared using `equal'.
See also: `-replace-at'"
(declare (pure t) (side-effect-free t))
(--map-when (equal it old) new list))