Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/multiset/custom/index.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@1.0.0/multiset/custom/index.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