Function: evil-member-if
evil-member-if is a byte-compiled function defined in evil-common.el.
Signature
(evil-member-if PREDICATE LIST &optional POINTER)
Documentation
Find the first item satisfying PREDICATE in LIST.
Stop when reaching POINTER, which should point at a link in the list.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
(defun evil-member-if (predicate list &optional pointer)
"Find the first item satisfying PREDICATE in LIST.
Stop when reaching POINTER, which should point at a link
in the list."
(let (elt)
(catch 'done
(while (and (consp list) (not (eq list pointer)))
(setq elt (car list))
(if (funcall predicate elt)
(throw 'done elt)
(setq list (cdr list)))))))