Function: cl-delete-if-not
cl-delete-if-not is an autoloaded and byte-compiled function defined
in cl-seq.el.gz.
Signature
(cl-delete-if-not PREDICATE SEQ [KEYWORD VALUE]...)
Documentation
Remove all items not 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
delete-if-not (obsolete since 27.1)
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/cl-seq.el.gz
;;;###autoload
(defun cl-delete-if-not (cl-pred cl-list &rest cl-keys)
"Remove all items not 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 PREDICATE SEQ [KEYWORD VALUE]...)"
(apply 'cl-delete nil cl-list :if-not cl-pred cl-keys))