import { type ProximityMap } from "https://deno.land/x/rimbu@1.2.0/core/mod.ts";
const { Context } = ProximityMap;
A context instance for a ProximityMap
that acts as a factory
for every instance of this type of collection.
Properties
readonly
distanceFunction: DistanceFunction<UK>The function used to compute the distance between stored keys and any research key
readonly
hashMapContext: HashMap.Context<UK>The context used by the internal HashMap
Methods
createBuilder<K extends UK, V>(source?: ProximityMap.NonEmpty<K, V>): ProximityMap.Builder<K, V>
Creates a builder given the optional non-empty source map