Package-level declarations
Types
Implementation of a Red/Black Tree data structure, serving as a base for specialized data structures such as maps and sets.
A MutableSortedMap implementation backed by a Red/Black Tree, with each map entry being represented as a node. Search, insertion, and removal all run in O(log n) time thanks to the properties of the tree.
A MutableSortedSet implementation backed by a Red/Black Tree, with each map entry being represented as a node. Search, insertion, and removal all run in O(log n) time thanks to the properties of the tree.
Functions
Returns an empty, read-only sorted map.
Returns an empty, read-only sorted map.
Returns a new mutable sorted map with the specified contents, given as a list of pairs where the first value is the key and the second is the value.
Returns a new mutable sorted set with the given elements. Elements of the set are iterated in according to their natural order.
Returns a new read-only sorted map with the specified contents, given as a list of pairs where the first value is the key and the second is the value.
Returns a new read-only sorted set with the given elements. Elements of the set are iterated in according to their natural order.