Function: cl-count-if

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

Signature

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

Documentation

Count the number of items satisfying PREDICATE in SEQ.

Keywords supported: :key :start :end

View in manual

Aliases

count-if (obsolete since 27.1)

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/cl-seq.el.gz
;;;###autoload
(defun cl-count-if (pred list &rest cl-keys)
  "Count the number of items satisfying PREDICATE in SEQ.
\nKeywords supported:  :key :start :end
\n(fn PREDICATE SEQ [KEYWORD VALUE]...)"
  (declare (important-return-value t))
  (apply #'cl-count nil list :if pred cl-keys))