import { type Ordered } from "https://deno.land/x/rimbu@1.0.2/core/menu/set/index.ts";
const { NonEmpty } = Ordered.Sorted;
A non-empty type-invariant immutable Ordered SortedSet of value type T. In the Set, there are no duplicate values. See the Set documentation and the OrderedSortedSet API documentation
Examples
Example 1
Example 1
const s1 = OrderedSortedSet.empty<string>()
const s2 = OrderedSortedSet.of('a', 'b', 'c')