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

x/rimbu/core/menu/multimap/index.ts>SortedKey.SortedValue

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

Interfaces

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

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

A non-empty type-invariant immutable MultiMap of key type K, and value type V. In the MultiMap, each key has at least one value. See the MultiMap documentation and the SortedMultiMapSortedValue API documentation

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

interface SortedKey.SortedValue
implements MultiMapBase<K, V, SortedMultiMapSortedValue.Types>
import { type SortedKey } from "https://deno.land/x/rimbu@1.0.2/core/menu/multimap/index.ts";
const { SortedValue } = SortedKey;

A type-invariant immutable MultiMap of key type K, and value type V. In the MultiMap, each key has at least one value. See the MultiMap documentation and the SortedMultiMapSortedValue API documentation

Examples

Example 1

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

type

SortedMultiMapSortedValueCreators