1.2.0 permalink Arrow_down_16x16

proper-subset?

clojure.contrib.set

  • (proper-subset? set1 set2)
Is s1 a proper subset 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:40 top

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

Comments top

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