summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/collections/Uniq.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/functions/collections/Uniq.md')
-rw-r--r--docs/content/en/functions/collections/Uniq.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/content/en/functions/collections/Uniq.md b/docs/content/en/functions/collections/Uniq.md
new file mode 100644
index 000000000..1b0a8f8f4
--- /dev/null
+++ b/docs/content/en/functions/collections/Uniq.md
@@ -0,0 +1,25 @@
+---
+title: collections.Uniq
+linkTitle: uniq
+description: Takes in a slice or array and returns a slice with duplicate elements removed.
+categories: [functions]
+keywords: []
+menu:
+ docs:
+ parent: functions
+function:
+ aliases: [uniq]
+ returnType: any
+ signatures: [collections.Uniq COLLECTION]
+relatedFunctions:
+ - collections.Reverse
+ - collections.Shuffle
+ - collections.Sort
+ - collections.Uniq
+aliases: [/functions/uniq]
+---
+
+
+```go-html-template
+{{ slice 1 3 2 1 | uniq }} → [1 3 2]
+```