hugo

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

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

symdiff.md (517B)

    1 ---
    2 title: "symdiff"
    3 description: "`collections.SymDiff` (alias `symdiff`) returns the symmetric difference of two collections."
    4 date: 2018-11-07
    5 categories: [functions]
    6 menu:
    7   docs:
    8     parent: "functions"
    9 keywords: [collections,intersect,union,complement]
   10 signature: ["COLLECTION | symdiff COLLECTION" ]
   11 hugoversion: "0.51"
   12 aliases: []
   13 ---
   14 
   15 Example:
   16 
   17 ```go-html-template
   18 {{ slice 1 2 3 | symdiff (slice 3 4) }}
   19 ```
   20 
   21 The above will print `[1 2 4]`.
   22 
   23 Also see https://en.wikipedia.org/wiki/Symmetric_difference
   24 
   25 
   26 
   27 
   28