Function: cl-position-if-not

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

Signature

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

Documentation

Find the first item not satisfying PREDICATE in SEQ.

Return the index of the matching item, or nil if not found.

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

View in manual

Aliases

position-if-not (obsolete since 27.1)

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/cl-seq.el.gz
;;;###autoload
(defun cl-position-if-not (pred list &rest cl-keys)
  "Find the first item not satisfying PREDICATE in SEQ.
Return the index of the matching item, or nil if not found.
\nKeywords supported:  :key :start :end :from-end
\n(fn PREDICATE SEQ [KEYWORD VALUE]...)"
  (declare (important-return-value t))
  (apply #'cl-position nil list :if-not pred cl-keys))