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.0.4/sorted/set/index.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
Examples
Example 1
Example 1
const s1 = SortedSet.empty<string>()
const s2 = SortedSet.of('a', 'b', 'c')