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

x/rimbu/multiset/custom/implementation/base.ts>MultiSetEmpty

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class MultiSetEmpty
implements MultiSetBase<T, Tp>
extends EmptyBase
import { MultiSetEmpty } from "https://deno.land/x/rimbu@0.13.1/multiset/custom/implementation/base.ts";

Constructors

new
MultiSetEmpty(context: WithElem<Tp, T>["context"])

Properties

readonly
countMap: WithElem<Tp, T>["countMap"]
readonly
sizeDistinct: 0

Methods

add(elem: T, amount?: number): WithElem<Tp, T>["nonEmpty"]
addAll(values: StreamSource<T>): WithElem<Tp, T>["nonEmpty"]
addEntries(entries: StreamSource<readonly [T, number]>): WithElem<Tp, T>["normal"]
count(): 0
filterEntries(): WithElem<Tp, T>["normal"]
forEach(): void
has(): false
modifyCount(value: T, update: (currentCount: number) => number): WithElem<Tp, T>["normal"]
remove(): WithElem<Tp, T>["normal"]
removeAllEvery(): WithElem<Tp, T>["normal"]
removeAllSingle(): WithElem<Tp, T>["normal"]
setCount(elem: T, amount: number): WithElem<Tp, T>["normal"]
toArray(): []
toBuilder(): WithElem<Tp, T>["builder"]
toJSON(): ToJSON<[any, number][]>
toString(): string