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

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

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

Interfaces

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

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

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

interface MultiSet.Sorted
implements MultiSetBase<T, SortedMultiSet.Types>
import { type MultiSet } from "https://deno.land/x/rimbu@0.13.1/core/menu/menu.ts";
const { Sorted } = 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 SortedMultiSet API documentation

Examples

Example 1

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

type

SortedMultiSetCreators