import { type Ordered } from "https://deno.land/x/rimbu@1.0.3/core/menu/map/index.ts";
const { NonEmpty } = Ordered.Sorted;
A non-empty type-invariant immutable Ordered SortedMap of key type K, and value type V. In the Map, each key has exactly one value, and the Map cannot contain duplicate keys. See the Map documentation and the OrderedSortedMap API documentation
Examples
Example 1
Example 1
const m1 = OrderedSortedMap.empty<number, string>()
const m2 = OrderedSortedMap.of([1, 'a'], [2, 'b'])