Function: cl-nsubstitute-if
cl-nsubstitute-if is an autoloaded and byte-compiled function defined
in cl-seq.el.gz.
Signature
(cl-nsubstitute-if NEW PREDICATE SEQ [KEYWORD VALUE]...)
Documentation
Substitute NEW for all items satisfying PREDICATE in SEQ.
This is a destructive function; it reuses the storage of SEQ whenever possible.
Keywords supported: :key :count :start :end :from-end
Aliases
nsubstitute-if (obsolete since 27.1)
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/cl-seq.el.gz
;;;###autoload
(defun cl-nsubstitute-if (cl-new cl-pred cl-list &rest cl-keys)
"Substitute NEW for all items satisfying PREDICATE in SEQ.
This is a destructive function; it reuses the storage of SEQ whenever possible.
\nKeywords supported: :key :count :start :end :from-end
\n(fn NEW PREDICATE SEQ [KEYWORD VALUE]...)"
(apply 'cl-nsubstitute cl-new nil cl-list :if cl-pred cl-keys))