News for hackers. Stuff that matters.
Re:Data Structures in Clojure: Hash Tables by copx on Tuesday February 04, 2014 @01:24PM (#7179267)
Where is the definition of the actual hash function? That is the interesting and tricky part of a hash table. Is "hash" a Clojure built-in?
Re:Data Structures in Clojure: Hash Tables by shriphani on Tuesday February 04, 2014 @01:38PM (#7179377)
Clojure has a built-in hash which (I believe) returns the value of <your_obj>.hashCode() [the one java provides].
Re:Data Structures in Clojure: Hash Tables by dantiberian on Tuesday February 04, 2014 @03:44PM (#7180121)
You are correct, (hash x) returns x.hashCode() from Java http://clojuredocs.org/clojure_core/clojure.core/hash