Skip to main content
Module

x/rimbu/mod.ts>OrderedHashMap

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

Interfaces

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

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

A non-empty type-invariant immutable Ordered HashMap 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 OrderedHashMap API documentation

Utility interface that provides higher-kinded types for this collection.

interface OrderedHashMap
import { type OrderedHashMap } from "https://deno.land/x/rimbu@0.13.1/mod.ts";

A type-invariant immutable Ordered HashMap 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 OrderedHashMap API documentation

Examples

Example 1

const m1 = OrderedHashMap.empty<number, string>()
const m2 = OrderedHashMap.of([1, 'a'], [2, 'b'])
variable OrderedHashMap
import { OrderedHashMap } from "https://deno.land/x/rimbu@0.13.1/mod.ts";