To clarify  Baishampayan's code, hash-sets in Clojure are functions:

=> (#{1} 1)
1
=> (#{1} 2)
nil

Nil and false in Clojure are the same thing,

So Baishampayan's example:

(remove #{:a :z :x} [:a :b :a :c :d :e :z :b :d :e :x :z])

#{:a :z : x} will return nil if the value is not in the vector, nil is
considered false, and so the not found value is removed from the seq.

Timothy

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to