hugo

Fork of github.com/gohugoio/hugo with reverse pagination support

git clone git://git.shimmy1996.com/hugo.git

uniq.md (485B)

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