Closed thass0 closed 8 months ago
The name max_value indicates that the set should be able to contains the value itself too. Calling this variable cap might better fit this purpose. Alternatively, one might add 1 to the max_value in the SparseSet::new function.
max_value
cap
SparseSet::new
The name
max_value
indicates that the set should be able to contains the value itself too. Calling this variablecap
might better fit this purpose. Alternatively, one might add 1 to themax_value
in theSparseSet::new
function.