Help for this page

Select Code to Download


  1. or download this
    my @distinct_union, %seen;
    
    for my $e ( @group1, @group2 ) {
      push @distinct_union, $e unless $seen{ $e }++;
    }