Function: seq-contains-p
seq-contains-p is a byte-compiled function defined in transient.el.
Signature
(seq-contains-p SEQUENCE ELT &optional TESTFN)
Documentation
Return non-nil if SEQUENCE contains an element "equal" to ELT.
"Equality" is defined by the function TESTFN, which defaults to equal.
Other relevant functions are documented in the sequence group.
Probably introduced at or before Emacs version 27.1.
Shortdoc
;; sequence
(seq-contains-p '(a b c) 'b)
=> t
(seq-contains-p '(a b c) 'd)
=> nil
Implementations
(sequence elt &optional testfn) in `seq-25.el'.
Undocumented
Source Code
;; Defined in ~/.emacs.d/elpa/transient-20260414.1009/transient.el
;; Could not find source code, showing raw function object.
#[770 "\3002\301\302\303#\"\210\3040\207"
[seq--break seq-do make-closure
#[257 "\301\206\302\300\"\211\205\303\304\"\207"
[V0 V1 equal throw seq--break]
5 "\n\n(fn E)"]
nil]
8 "\n\n(fn SEQUENCE ELT &optional TESTFN)"]