mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-11 00:44:40 -04:00
Update uniq function example (#1963)
This commit is contained in:
parent
686a65cf69
commit
6cc9ebdfd8
@ -2,24 +2,17 @@
|
|||||||
title: uniq
|
title: uniq
|
||||||
linktitle: uniq
|
linktitle: uniq
|
||||||
description: Takes in a slice or array and returns a slice with duplicate elements removed.
|
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]
|
categories: [functions]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: functions
|
||||||
keywords: [multilingual,i18n,urls]
|
keywords: [multilingual,i18n,urls]
|
||||||
signature: ["uniq SET"]
|
signature: [uniq SET]
|
||||||
workson: []
|
|
||||||
hugoversion:
|
|
||||||
relatedfuncs: []
|
|
||||||
deprecated: false
|
|
||||||
aliases: []
|
aliases: []
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
{{ uniq (slice 1 2 3 2) }}
|
{{ slice 1 3 2 1 | uniq }} --> [1 3 2]
|
||||||
{{ slice 1 2 3 2 | uniq }}
|
|
||||||
<!-- both return [1 2 3] -->
|
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user