1--- 2title: uniq 3linktitle: uniq 4description: Takes in a slice or array and returns a slice with subsequent duplicate elements removed. 5date: 2017-02-01 6publishdate: 2017-02-01 7lastmod: 2017-02-01 8categories: [functions] 9menu: 10 docs: 11 parent: "functions" 12keywords: [multilingual,i18n,urls] 13signature: ["uniq SET"] 14workson: [] 15hugoversion: 16relatedfuncs: [] 17deprecated: false 18aliases: [] 19needsexamples: false 20--- 21 22``` 23{{ uniq (slice 1 2 3 2) }} 24{{ slice 1 2 3 2 | uniq }} 25<!-- both return [1 2 3] --> 26``` 27