import { Map } from "https://deno.land/x/rimbu@1.1.0/core/menu/menu.ts";
const { Proximity } = Map;
Interfaces
A mutable | |
A context instance for a | |
A non-empty type-invariant immutable Map of key type K, and value type V. In the Map, each key has exactly one value, and the Map cannot contain duplicate keys. See the Map documentation and the ProximityMap API documentation | |
Utility interface that provides higher-level types for this collection. |
import { type Map } from "https://deno.land/x/rimbu@1.1.0/core/menu/menu.ts";
const { Proximity } = Map;
A type-invariant immutable Map of key type K, and value type V. In the Map, each key has exactly one value, and the Map cannot contain duplicate keys. See the Map documentation and the ProximityMap API documentation
Examples
Example 1
Example 1
const m1 = ProximityMap.empty<number, string>()
const m2 = ProximityMap.of([1, 'a'], [2, 'b'])
import { Map } from "https://deno.land/x/rimbu@1.1.0/core/menu/menu.ts";
const { Proximity } = Map;