Since sets are callable like functions, subset? can be written pretty
concisely:

user> (defn subset? [a b] (every? b a))

It handles the empty set cases correctly and everything.  Is this
already in clojure-contrib?  Want it and its brethren superset? proper-
subset? proper-superset? in there?

Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to