import { Hasher } from "https://deno.land/x/rimbu@0.13.2/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.
Parameters
optional
options: { itemHasher?: Hasher<T>; maxStepBits?: number; }- (optional) an object containing the following items:
- itemHasher - (optional) a Hasher instance used to hash elements in the array
- maxStepBits - (optional) the amount of bits to determine the maximum amount of array elements to process