Help for this page

Select Code to Download


  1. or download this
    my @b = uniq @a;
    
    my %seen;
    my @b = grep !$seen{$_}++, @a;
    
  2. or download this
    my @b = @{( reduce { push @{$a->[1]}, $b if !$a->[0]{$b}++ } [ {}, [] 
    +], @a; $a )->[1]};