* Inserts `child` at index `i`. * This does not mark `child` as shared, so it is the responsibility of the caller * to ensure that either child is marked shared, or it is not included in another tree.
(i: index, child: BNode<K, V>)
| 841 | * to ensure that either child is marked shared, or it is not included in another tree. |
| 842 | */ |
| 843 | insert(i: index, child: BNode<K, V>) { |
| 844 | this.children.splice(i, 0, child) |
| 845 | this.keys.splice(i, 0, child.maxKey()!) |
| 846 | } |
| 847 | |
| 848 | /** |
| 849 | * Split this node. |