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

x/rimbu/core/menu/map/index.ts>Ordered.Sorted

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

Interfaces

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

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

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

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

interface Ordered.Sorted
implements OrderedMapBase<K, V, OrderedSortedMap.Types>
import { type Ordered } from "https://deno.land/x/rimbu@1.0.3/core/menu/map/index.ts";
const { Sorted } = Ordered;

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

Examples

Example 1

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

type

OrderedSortedMapCreators