Delete *element* from the BTree. Returns the matching element or ``None`` if it was not in the BTree.
(self, element: ET)
| 716 | return self._delete(key, None) |
| 717 | |
| 718 | def delete_exact(self, element: ET) -> ET | None: |
| 719 | """Delete *element* from the BTree. |
| 720 | |
| 721 | Returns the matching element or ``None`` if it was not in the BTree. |
| 722 | """ |
| 723 | delt = self._delete(element.key(), element) |
| 724 | assert delt is element |
| 725 | return delt |
| 726 | |
| 727 | def __len__(self): |
| 728 | return self.size |