1.2.0 permalink Arrow_down_16x16

proper-superset?

clojure.contrib.set

  • (proper-superset? set1 set2)
Is s1 a proper superset of s2?

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/set.clj:47 top

(defn proper-superset? 
  "Is s1 a proper superset of s2?"
  [set1 set2]
  {:tag Boolean}
  (and (> (count set1) (count set2))
       (every? set1 set2)))
Vars in clojure.contrib.set/proper-superset?: > and count defn every?
Used in 0 other vars

Comments top

No comments for proper-superset?. Log in to add a comment.