import { type SortedMap } from "https://deno.land/x/rimbu@1.0.0/sorted/map/index.ts";
const { Builder } = SortedMap;
A mutable SortedMap
builder used to efficiently create new immutable instances.
See the Map documentation and the SortedMap.Builder API documentation
Methods
Returns the entry with the minimum key of the SortedMap Builder, or a fallback value (default: undefined) if the builder is empty.
Returns the entry with the maximum key of the SortedMap Builder, or a fallback value (default: undefined) if the builder is empty.
Returns the entry with its key at the given index of the key sort order of the SortedMap builder, or a fallback value (default: undefined) if the index is out of bounds.