diff --git a/content/functions/uniq.md b/content/functions/uniq.md new file mode 100644 index 000000000..5d283266f --- /dev/null +++ b/content/functions/uniq.md @@ -0,0 +1,34 @@ +--- +title: uniq +linktitle: uniq +description: Takes in a slice or array and returns a slice with subsequent duplicate elements removed. +godocref: +date: 2017-02-01 +publishdate: 2017-02-01 +lastmod: 2017-02-01 +categories: [functions] +menu: + docs: + parent: "functions" +tags: [multilingual,i18n,urls] +ns: +signature: ["uniq SET"] +workson: [] +hugoversion: +relatedfuncs: [] +deprecated: false +aliases: [] +needsexamples: false +--- + +The `uniq` function takes in a slice or array and returns a slice with subsequent duplicate elements removed: + +```html +{{ uniq (slice 1 2 3 2) }} +{{ slice 1 2 3 2 | uniq }} + +``` + + + +