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.
(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)))
Comments top
No comments for includes?. Log in to add a comment.