Clear
Removes all keys, keeping the allocation.
Module: Std::HashSet
Signature
rux
func Clear(self);Description
Empties the set by resetting every slot and setting the count to 0, while keeping the backing buffer so it can be refilled without reallocating. To also release the memory, use Free.
Example
rux
import Std::HashSet::*;
set.Clear(); // count is now 0, capacity unchangedSee also
Std::HashSet— the typeFree— also release the memoryRemove— delete a single key