From 6cc9ebdfd8e464316f48a232902b373e48d1af34 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Mon, 30 Jan 2023 11:50:25 -0800 Subject: [PATCH] Update uniq function example (#1963) --- content/en/functions/uniq.md | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/content/en/functions/uniq.md b/content/en/functions/uniq.md index 1f0a5659f..73ca32488 100644 --- a/content/en/functions/uniq.md +++ b/content/en/functions/uniq.md @@ -2,24 +2,17 @@ title: uniq linktitle: uniq description: Takes in a slice or array and returns a slice with duplicate elements removed. -date: 2017-02-01 -publishdate: 2017-02-01 -lastmod: 2017-02-01 categories: [functions] menu: docs: - parent: "functions" + parent: functions keywords: [multilingual,i18n,urls] -signature: ["uniq SET"] -workson: [] -hugoversion: -relatedfuncs: [] -deprecated: false +signature: [uniq SET] aliases: [] --- + ``` -{{ uniq (slice 1 2 3 2) }} -{{ slice 1 2 3 2 | uniq }} - +{{ slice 1 3 2 1 | uniq }} --> [1 3 2] + ```