(key T, child *BTreeNode[T])
| 98 | } |
| 99 | |
| 100 | func (node *BTreeNode[T]) Append(key T, child *BTreeNode[T]) { |
| 101 | node.keys[node.numKeys] = key |
| 102 | node.children[node.numKeys+1] = child |
| 103 | node.numKeys++ |
| 104 | } |
| 105 | |
| 106 | // Add all of other's keys starting from idx and children starting from idx + 1 |
| 107 | func (node *BTreeNode[T]) Concat(other *BTreeNode[T], idx int) { |