Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/rimbu/core/menu/menu.ts>MultiSet.Hashed

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

Interfaces

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

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

A type-invariant immutable MultiSet of value type T. In the MultiSet, each value can occur multiple times. See the MultiSet documentation and the HashMultiSet API documentation

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

interface MultiSet.Hashed
implements MultiSetBase<T, HashMultiSet.Types>
import { type MultiSet } from "https://deno.land/x/rimbu@0.13.1/core/menu/menu.ts";
const { Hashed } = MultiSet;

A type-invariant immutable MultiSet of value type T. In the MultiSet, each value can occur multiple times. See the MultiSet documentation and the HashMultiSet API documentation

Examples

Example 1

const m1 = HashMultiSet.empty<string>()
const m2 = HashMultiSet.of('a', 'b', 'a', 'c')
variable MultiSet.Hashed
import { MultiSet } from "https://deno.land/x/rimbu@0.13.1/core/menu/menu.ts";
const { Hashed } = MultiSet;

type

HashMultiSetCreators