import { type RSetBase } from "https://deno.land/x/rimbu@0.14.0/collection-types/set-custom/index.ts";
const { Builder } = RSetBase;
Type Parameters
optional
Tp extends RSetBase.Types = RSetBase.TypesMethods
Returns true if the given value
is present in the builder.
add(value: T): boolean
Adds given value
to the builder.
addAll(values: StreamSource<T>): boolean
Adds the values in given values
StreamSource
to the builder.
removeAll<U = T>(values: StreamSource<RelatedTo<T, U>>): boolean
Removes the values in given values
StreamSource
from this builder.
forEach(f: () => void, state?: TraverseState): void
Performs given function f
for each value of the builder.