bTreeOrderedMap<
K,V>(order):OrderedMap<K,V>
Defined in: packages/ordered-map/src/b-tree-ordered-map.ts:55
Create an empty B-tree ordered map: a B+ tree with linked leaves and per-child entry counts on each branch. Supply a stable total order and keep comparison keys unchanged while stored. The order may not mutate the map.
Every search, write, rank, selection, ceiling and floor takes worst-case O(log n) time. A bounded walk in either
direction costs one descent plus O(k) for k results.
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”Order<K>
Returns
Section titled “Returns”OrderedMap<K, V>
Douglas Comer, The Ubiquitous B-Tree, ACM Computing Surveys 11(2), 1979.