I think that assigning a slice to the empty list is probably as good as it gets.
The recently-seen-here, undef @saw{@in}; may be as fast, but it doesn't really sing out its intent.@saw{@in} = (); @out = keys %saw;
After Compline,
Zaxo
In reply to Re: better union of sets algorithm?
by Zaxo
in thread better union of sets algorithm?
by perrin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |