Function: cl-member-if
cl-member-if is an autoloaded and byte-compiled function defined in
cl-seq.el.gz.
Signature
(cl-member-if PREDICATE LIST [KEYWORD VALUE]...)
Documentation
Find the first item satisfying PREDICATE in LIST.
Return the sublist of LIST whose car matches.
Keywords supported: :key
Aliases
member-if (obsolete since 27.1)
magit--any
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/cl-seq.el.gz
;;;###autoload
(defun cl-member-if (cl-pred cl-list &rest cl-keys)
"Find the first item satisfying PREDICATE in LIST.
Return the sublist of LIST whose car matches.
\nKeywords supported: :key
\n(fn PREDICATE LIST [KEYWORD VALUE]...)"
(apply 'cl-member nil cl-list :if cl-pred cl-keys))