summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-11-07 10:00:33 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-11-07 10:38:58 +0100
commit5d14d04ac678ad24e4946ed2a581ab71b3834def (patch)
tree4efd1190e4e763adfe65996a905517e5a7ba7479 /docs/content/en/functions
parentddcb402859b50193bfd6d8b752b568d26d14f603 (diff)
docs: Document symdiff
Closes https://github.com/gohugoio/hugoDocs/issues/659
Diffstat (limited to 'docs/content/en/functions')
-rw-r--r--docs/content/en/functions/symdiff.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/docs/content/en/functions/symdiff.md b/docs/content/en/functions/symdiff.md
new file mode 100644
index 000000000..b47bd26c0
--- /dev/null
+++ b/docs/content/en/functions/symdiff.md
@@ -0,0 +1,28 @@
+---
+title: "symdiff"
+description: "`collections.SymDiff` (alias `symdiff`) returns the symmetric difference of two collections."
+date: 2018-11-07
+categories: [functions]
+menu:
+ docs:
+ parent: "functions"
+keywords: [collections,intersect,union, complement]
+signature: ["COLLECTION | symdiff COLLECTION" ]
+hugoversion: "0.51"
+aliases: []
+---
+
+Example:
+
+```go-html-template
+{{ slice 1 2 3 | symdiff (slice 3 4) }}
+```
+
+The above will print `[1 2 4]`.
+
+Also see https://en.wikipedia.org/wiki/Symmetric_difference
+
+
+
+
+