Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/core/menu/map/index.ts>Proximity

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
namespace Proximity
import { Proximity } from "https://deno.land/x/rimbu@1.2.1/core/menu/map/index.ts";

Interfaces

A mutable ProximityMap builder used to efficiently create new immutable instances. See the Map documentation and the ProximityMap.Builder API documentation

A context instance for a ProximityMap that acts as a factory for every instance of this type of collection.

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.

interface Proximity
implements RMapBase<K, V, ProximityMap.Types>
import { type Proximity } from "https://deno.land/x/rimbu@1.2.1/core/menu/map/index.ts";

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

const m1 = ProximityMap.empty<number, string>()
const m2 = ProximityMap.of([1, 'a'], [2, 'b'])
variable Proximity
import { Proximity } from "https://deno.land/x/rimbu@1.2.1/core/menu/map/index.ts";

type

ProximityMapCreators