Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/hashed/map-custom/index.ts>HashMapCollisionBuilder

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class HashMapCollisionBuilder
extends CollisionBuilderBase<readonly [K, V]>
import { HashMapCollisionBuilder } from "https://deno.land/x/rimbu@0.13.1/hashed/map-custom/index.ts";

Constructors

new
HashMapCollisionBuilder(
context: HashMapContext<K>,
source?: undefined | HashMapCollision<K, V>,
_entries?: undefined | List.Builder<readonly [K, V]>,
)

Methods

addEntryInternal(entry: readonly [K, V]): boolean
buildMapValues<V2>(f: (value: V, key: K) => V2): HashMap<K, V2>
get<UK, O>(
key: RelatedTo<K, UK>,
otherwise?: OptLazy<O>,
hash?: number,
): V | O
modifyAt(atKey: K, options: { ifNew?: OptLazyOr<V, Token>; ifExists?: (currentEntry: V, remove: Token) => V | Token; }): boolean
set(key: K, value: V): boolean