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

x/rimbu/core/menu/multimap/index.ts>HashKey.HashValue

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

Interfaces

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

A context instance for an HashMultiMapHashValue 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 HashMultiMapHashValue API documentation

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

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

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 HashMultiMapHashValue API documentation

Examples

Example 1

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

type

HashMultiMapHashValueCreators