import { VariantMultiSetBase } from "https://deno.land/x/rimbu@1.2.1/multiset/custom/index.ts";
Interfaces
Utility interface that provides higher-kinded types for this collection. |
import { type VariantMultiSetBase } from "https://deno.land/x/rimbu@1.2.1/multiset/custom/index.ts";
Type Parameters
optional
Tp extends VariantMultiSetBase.Types = VariantMultiSetBase.TypesMethods
Returns true if there is at least one entry in the collection, and instructs the compiler to treat the collection as a .NonEmpty type.
remove<U = T>(value: RelatedTo<T, U>, options?: { amount?: number | "ALL"; }): WithElem<Tp, T>["normal"]
Returns the collection where the given amount
(default: 'ALL') of the given value
are removed.
Returns the collection where for every value from given values
StreamSource
,
all values in the collection are removed.
forEach(f: () => void, options?: { state?: TraverseState; }): void
Performs given function f
for each value of the collection, using given state
as initial traversal state.
filterEntries<TF extends T>(pred: (entry: readonly [T, number], index: number) => entry is [TF, number], options?: { negate?: false | undefined; }): WithElem<Tp, TF>["normal"]
Returns the collection containing only those values for which the given pred
function returns true.