import { type MultiSetBase } from "https://deno.land/x/rimbu@1.2.0/multiset/custom/interface/base.ts";
const { Builder } = MultiSetBase;
Type Parameters
Methods
Returns true if the given value
is present in the builder.
Adds given value
to the builder.
Adds the values in given values
StreamSource
to the builder.
Adds for each tuple of a value and amount in the given entries
, the amount of values
to the builder.
Removes given amount
or all of given value
from the builder.
Removes every single value in given values
from the builder.
Removes every instance of the given values
from the builder.
Sets the amount of given value
in the collection to amount
.
Changes the amount of given value
in the builder according to the result of given update
function.
Performs given function f
for each value of the collection, using given state
as initial traversal state.