import { Hasher } from "https://deno.land/x/rimbu@0.12.3/mod.ts";
const { streamSourceHasher } = Hasher;
Returns a Hasher instance that hashes any StreamSource limited to a certain amount of elements to prevent haning on infinite streams.
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