Function: cl-remove-if

cl-remove-if is an autoloaded and byte-compiled function defined in cl-seq.el.gz.

Signature

(cl-remove-if PREDICATE SEQ [KEYWORD VALUE]...)

Documentation

Remove all items satisfying PREDICATE in SEQ.

This is a non-destructive function; it makes a copy of SEQ if necessary to avoid corrupting the original SEQ.

Keywords supported: :key :count :start :end :from-end

View in manual

Aliases

org-remove-if (obsolete since 9.0) remove-if (obsolete since 27.1)

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/cl-seq.el.gz
;;;###autoload
(defun cl-remove-if (cl-pred cl-list &rest cl-keys)
  "Remove all items satisfying PREDICATE in SEQ.
This is a non-destructive function; it makes a copy of SEQ if necessary
to avoid corrupting the original SEQ.
\nKeywords supported:  :key :count :start :end :from-end
\n(fn PREDICATE SEQ [KEYWORD VALUE]...)"
  (apply 'cl-remove nil cl-list :if cl-pred cl-keys))