Skip to main content
Module

x/rimbu/mod.ts>Hasher.bigintHasher

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
function Hasher.bigintHasher
import { Hasher } from "https://deno.land/x/rimbu@0.14.0/mod.ts";
const { bigintHasher } = Hasher;

Returns a Hasher instance that hashes bigints.

Examples

Example 1

const h = Hasher.bigintHasher()
console.log(h.hash(BigInt(5)) === h.hash(BigInt(10)))
// => false