Subject: | New method Clear() |
I wrote and submitted in github a pull request with a change which adds a new method
Clear() to Tie::IxHash objects.
The same can be obtained with
$ixh->Delete($ixh->Keys);
(whose performance should be very poor)
or
$ixh->Splice(0, $ixh->Length);
(whose performance should be better, but it is still quite complicate for the simple task of
Clear())
Both options also include calling two methods on the object.
I think the addition of this method is a nice complement to the functionality of Tie::IxHash.