import { Hasher } from "https://deno.land/x/rimbu@1.2.0/hashed/main/index.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.
Examples
Example 1
Example 1
const h = Hasher.streamSourceHasher()
h.hash(Stream.random())
// infinite stream but will not hang due to the max step limit