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

x/rimbu/proximity/map-custom/context.ts>ProximityMapContext

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class ProximityMapContext
implements [ProximityMap.Context]<UK>
import { ProximityMapContext } from "https://deno.land/x/rimbu@1.0.0/proximity/map-custom/context.ts";

Constructors

new
ProximityMapContext(distanceFunction: DistanceFunction<UK>, hashMapContext: HashMap.Context<UK>)

Properties

readonly
_empty: ProximityMap<any, any>
readonly
builder: <K extends UK, V>() => ProximityMap.Builder<K, V>
readonly
typeTag: string

Methods

createBuilder<K extends UK, V>(source?: ProximityMap.NonEmpty<K, V>): ProximityMap.Builder<K, V>
isNonEmptyInstance(source: any): source is any
isValidKey(key: any): key is UK