Function: -contains?

-contains? is a byte-compiled function defined in dash.el.

Signature

(-contains? LIST ELEMENT)

Documentation

Return non-nil if LIST contains ELEMENT.

The test for equality is done with equal, or with -compare-fn if that is non-nil. As with member, the return value is actually the tail of LIST whose car is ELEMENT.

Alias: -contains-p.

View in manual

Aliases

-contains-p

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -contains? (list element)
  "Return non-nil if LIST contains ELEMENT.

The test for equality is done with `equal', or with `-compare-fn'
if that is non-nil.  As with `member', the return value is
actually the tail of LIST whose car is ELEMENT.

Alias: `-contains-p'."
  (declare (important-return-value t))
  (funcall (dash--member-fn) element list))