import { MultiSetBase } from "https://deno.land/x/rimbu@1.2.0/multiset/custom/index.ts";
Interfaces
Utility interface that provides higher-kinded types for this collection. |
import { type MultiSetBase } from "https://deno.land/x/rimbu@1.2.0/multiset/custom/index.ts";
Type Parameters
optional
Tp extends MultiSetBase.Types = MultiSetBase.TypesMethods
Returns the collection with the given value
added amount
times.
Returns the collection with the values in values
added.
addAll(values: StreamSource<T>): WithElem<Tp, T>["normal"]
addEntries(entries: StreamSource<readonly [T, number]>): WithElem<Tp, T>["normal"]
Returns the collection where for every entry in entries
consisting of a tuple
of a value and an amount, that value is added amount
times.
Returns the collection where the amount of values of value
if set to amount
.
Returns the collection where the count of the given value
is modified according to
the given update
function.