Skip to main content

Module hash

Module hash 

Source

Traits§

ClojureHash
Clojure-compatible hashing.

Functions§

hash_combine_ordered
Combine two hashes preserving order (used for list/vector).
hash_combine_unordered
Combine two hashes (order-independent — used for map/set).
hash_i64
Hash a single i64 the way Clojure does (mix the two 32-bit halves).
hash_string
Hash a string using the JVM String.hashCode algorithm (UTF-16 codepoints). This matches (hash "foo") in Clojure.
hash_u128
murmur3_mix
Murmur3 finalizer mix (matches Clojure’s Util.hashCombine).