Function: seq-contains
seq-contains is a byte-compiled function defined in seq.el.gz.
This function is obsolete since 27.1; use seq-contains-p instead.
Signature
(seq-contains SEQUENCE ELT &optional TESTFN)
Documentation
Return the first element in SEQUENCE that is "equal" to ELT.
"Equality" is defined by the function TESTFN, which defaults to equal.
Probably introduced at or before Emacs version 27.1.
Implementations
(seq-contains SEQUENCE ELT &optional TESTFN) in `seq.el'.
Undocumented
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/seq.el.gz
(cl-defgeneric seq-contains (sequence elt &optional testfn)
"Return the first element in SEQUENCE that is \"equal\" to ELT.
\"Equality\" is defined by the function TESTFN, which defaults to `equal'."
(declare (obsolete seq-contains-p "27.1"))
(seq-some (lambda (e)
(when (funcall (or testfn #'equal) elt e)
e))
sequence))