Remove duplicate elements

my @unique = [1, 2, 3, 5, 2, 4, 3, -3, 7, 5, 6].unique;

Or just make a set of it.

set(1,2,3,5,2,4,3,-3,7,5,6).list

Last updated