import { Hasher } from "https://deno.land/x/rimbu@1.2.0/core/mod.ts";
const { arrayHasher } = Hasher;
Returns a Hasher that hashes arrays of elements by sampling the array and using
the given itemHasher
to hash the sampled elements.
Examples
Example 1
Example 1
const h = Hasher.arrayHasher()
console.log(h.hash([1, 2, 3] === h.hash([1, 3, 2])))
// => false