RosettaCodeData/Task/Remove-duplicate-elements/Perl/remove-duplicate-elements-2.pl
2023-07-01 13:44:08 -04:00

2 lines
70 B
Raku

my %seen;
my @uniq = grep {!$seen{$_}++} qw(1 2 3 a b c 2 3 4 b c d);