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