clojure.core/hash¶
Returns the hash code of its argument. Note this is the hash code consistent with =, and thus is different than .hashCode for Integer, Short, Byte and Clojure collections.
Examples¶
Note by svenschoenung¶
Despite what the doc-string says values returned by (hash) are different from (.hashCode) for more than just Integer, Short, Byte and Clojure collections.
The list also includes: Keywords, Symbols, Functions, Sequences, String, Long and BigInteger (as of Clojure 1.7.0).
See also¶
Content from the matching ClojureDocs page, with authors credited on each contribution.