actually i think what i said wasnt accurate, its not checking identity because you can do this :
=> (def x [1 2]) => (def z (hash-set [1 2])) => (contains? z x) true => (contains? z [1 2]) true => (== x [1 2]) false That means the check for contains isnt identity, but rather the same type and same value. You could put those three things in some kind of order of strictness : == : the same thing contains? : has something of the same type and value = : the same value im sure someone else can explain in more exact terms what happens :) --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---