Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/core/main/index.ts>OrderedMap

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

Interfaces

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

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

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

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

interface OrderedMap
import { type OrderedMap } from "https://deno.land/x/rimbu@0.13.5/core/main/index.ts";

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

Examples

Example 1

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