Anonymous user
Remove duplicate elements: Difference between revisions
→[[Perl]]
m (→[[Forth]]) |
|||
Line 136:
@hash{@list} = 1;
# the keys of %hash now contain the unique list
my @unique_list = sort keys(%hash);
==[[PHP]]==
|
m (→[[Forth]]) |
|||
Line 136:
@hash{@list} = 1;
# the keys of %hash now contain the unique list
my @unique_list = sort keys(%hash);
==[[PHP]]==
|