Er, oops, forgot you can't HTML here.
Anyway, the upshot is that now
user=> (import '(java.util ArrayList))
nil
(doseq [s ['(1 2) (seq '(1 2)) [1 2] (seq [1 2]) (ArrayList. [1
2])]]
(print "\n" (.hashCode s))
(doseq [t ['(1 2) (seq '(1 2)) [1 2] (seq [1 2]) (ArrayList. [1
2])]]
(print "\t" (.equals s t))))
994 true true true true true
994 true true true true true
994 true true true true true
994 true true true true true
994 true true true true true
and
user=> (map #(contains? (hash-set [1 2]) %) '((1 2) [1 2]))
(true true)
Woohoo, thanks Rich!
-Jason
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---