interface SortedSet.NonEmpty
implements [RSetBase.NonEmpty]<T, SortedSet.Types>, Omit<SortedSet<T>, keyof RSetBase.NonEmpty<any, any>>, [Streamable.NonEmpty]<T>
import { type SortedSet } from "https://deno.land/x/rimbu@1.1.0/mod.ts";
const { NonEmpty } = SortedSet;
A non-empty type-invariant immutable Set of value type T. In the Set, there are no duplicate values. See the Set documentation and the SortedSet API documentation
Methods
stream(options?: { reversed?: boolean; }): Stream.NonEmpty<T>
take<N extends number>(amount: N): 0 extends N ? SortedSet<T> : SortedSet.NonEmpty<T>