import { VariantSetBase } from "https://deno.land/x/rimbu@1.2.0/collection-types/set-custom/interface/base.ts";
Interfaces
Utility interface that provides higher-kinded types for this collection. |
import { type VariantSetBase } from "https://deno.land/x/rimbu@1.2.0/collection-types/set-custom/interface/base.ts";
Type Parameters
optional
Tp extends VariantSetBase.Types = VariantSetBase.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.
forEach(f: () => void, options?: { state?: TraverseState; }): void
Performs given function f
for each value of the collection, using given state
as initial traversal state.
filter<TF extends T>(pred: () => value is TF, options?: { negate?: false | undefined; }): WithElem<Tp, TF>["normal"]
Returns a collection containing only those entries that satisfy given pred
predicate.