On Wed, Aug 19, 2009 at 2:33 AM, Sean Devlin <[email protected]>wrote:
>
> The set is being passed in as a parameter, so that will be a problem.
> Still, I'll be able to re-write my routine with false. Thanks!
When the set is passed in as a parameter, one bulletproof[1] way to do that
is:
user=> (filter (partial contains? #{false}) [true false false true])
(false false)
Christophe
[1] works even if nil is in the set
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
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
-~----------~----~----~----~------~----~------~--~---