4 ms·
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?
by copx 13y ago
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?
- shriphani 13y agoClojure has a built-in hash which (I believe) returns the value of <your_obj>.hashCode() [the one java provides].
- dantiberian 13y agoYou are correct, (hash x) returns x.hashCode() from Java http://clojuredocs.org/clojure_core/clojure.core/hash http://clojuredocs.org/clojure_core/clojure.core/hash