> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/perl6-rosettacode/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/perl6-rosettacode/programming_tasks/r/remove_duplicate_elements.md).

# Remove duplicate elements

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

Or just make a set of it.

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