Open LucaCappelletti94 opened 2 weeks ago
Also, at this time the methods to add
a new value to the CodesStats are called update
or update_many
. This seems like an unfortunate naming choice once I add a method to subtract a value, as it does not make it clear whether the update operation is an addition or subtraction - maybe the update_many
should accept an i64
as the count parameter.
In my use case, I am adding and removing elements from a sequence of hashes up until the best code fits within the size of the bitarray. Therefore, in order to estimate the optimal code for my use case, I need to add a method to remove a value from the CodesStats so that I may use it more straightforwardly than what I am presently doing.