mirror of
https://codeberg.org/andyscott/HashMaps.git
synced 2024-12-21 12:33:10 -05:00
Added docstring for clear()
This commit is contained in:
parent
0cccf1873c
commit
5eb29c4c3c
1 changed files with 1 additions and 3 deletions
|
@ -224,9 +224,7 @@ class HashMap:
|
|||
index = (initial_index + quadratic_factor**2) % self._capacity
|
||||
|
||||
def clear(self) -> None:
|
||||
"""
|
||||
TODO: Write this implementation
|
||||
"""
|
||||
"""Clear the contents of the hash map without changing its capacity"""
|
||||
|
||||
self._buckets = DynamicArray()
|
||||
self._size = 0
|
||||
|
|
Loading…
Reference in a new issue