Delete a key, returns the value if found
(self, key: Any)
| 768 | return None |
| 769 | |
| 770 | def delete(self, key: Any) -> Optional[Any]: |
| 771 | """Delete a key, returns the value if found""" |
| 772 | pos, exists = self.find_position(key) |
| 773 | if exists: |
| 774 | self.keys.pop(pos) |
| 775 | return self.values.pop(pos) |
| 776 | return None |
| 777 | |
| 778 | def split(self) -> "LeafNode": |
| 779 | """Split this leaf node, returning the new right node""" |
no test coverage detected