Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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@0.14.1/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