in reply to Re: A C-like brain in a Perl-like world
in thread A C-like brain in a Perl-like world
Side benefit? I don't lose the order of the incoming elements. :-) But, as with all hash approaches, my definition of "unique" is "stringifies the same". That is not always the appropriate definition to use.sub unique_merge { my %seen; grep !$seen{$_}++, @_; }
|
|---|