clojure.set/subset?

functionsince v0.0-927 clojure.set/subset?Edit
(subset? set1 set2)

Details:

Returns true if a is a subset of b, false otherwise.

In other words, returns true if all the elements of a can be found in b.


See Also:


Source docstring:
Is set1 a subset of set2?
Source code @ clojurescript:src/main/cljs/clojure/set.cljs
(defn subset? 
  [set1 set2]
  (and (<= (count set1) (count set2))
       (every? #(contains? set2 %) set1)))