import { HashMultiSet } from "https://deno.land/x/rimbu@1.0.2/multiset/main/interface/hashed/interface.ts";
Interfaces
A mutable | |
A context instance for an | |
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. |
import { type HashMultiSet } from "https://deno.land/x/rimbu@1.0.2/multiset/main/interface/hashed/interface.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
Example 1
const m1 = HashMultiSet.empty<string>()
const m2 = HashMultiSet.of('a', 'b', 'a', 'c')
import { HashMultiSet } from "https://deno.land/x/rimbu@1.0.2/multiset/main/interface/hashed/interface.ts";