instance method
Set#reset
() -> self
reset → self
set.c
View on GitHub ↗
static VALUE
set_i_reset(VALUE set)
{
if (set_iterating_p(set)) {
rb_raise(rb_eRuntimeError, "reset during iteration");
}
return set_reset_table_with_type(set, RSET_TABLE(set)->type);
}
Resets the internal state after modification to existing elements and returns self. Elements will be reindexed and deduplicated.