Skip to main content
Module

x/rimbu/mod.ts>HashMultiSet

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

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 HashMultiSet
import { type HashMultiSet } from "https://deno.land/x/rimbu@0.13.1/mod.ts";

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 HashMultiSet
import { HashMultiSet } from "https://deno.land/x/rimbu@0.13.1/mod.ts";