write-a-hash-table
write-a-hash-table copied to clipboard
Corrected deletion of items
Currently the count variable would always decrement even if the key is not in the table. You can also return from the function directly if a deletable item has been found since keys are unique. Typically one would also return a status code about weather the the item has been deleted (found) or not.