in reply to Re: Is there an easy way to assign guaranteed unique values to a simple array without looping through whole array?
in thread Is there an easy way to assign guaranteed unique values to a simple array without looping through whole array?
curiously, (the pure-perl version of) List::MoreUtils::uniq uses
rather thanmap { $h{$_}++ == 0 ? $_ : () } @_;
i wonder, a simple preference or are there interesting micro-optimizations in the map verison?grep { !$h{$_}++ } @_;
In Section
Seekers of Perl Wisdom