• (includes? coll x)
Returns true if coll contains something equal (with =) to x,
in linear time. Deprecated. Prefer 'contains?' for key testing,
or 'some' for ad hoc linear searches.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/seq.clj:229 top

(defn includes?
  "Returns true if coll contains something equal (with =) to x,
  in linear time. Deprecated. Prefer 'contains?' for key testing,
  or 'some' for ad hoc linear searches."
  {:deprecated "1.2"}
  [coll x]
  (boolean (some (fn [y] (= y x)) coll)))
Vars in clojure.contrib.seq/includes?: = boolean defn fn some
Used in 0 other vars

Comments top

No comments for includes?. Log in to add a comment.