hugo/content/en/functions/symdiff.md
Bjørn Erik Pedersen b9bd35d72e Squashed 'docs/' content from commit fdea5430f
git-subtree-dir: docs
git-subtree-split: fdea5430f89dfd849d39212abdf5ace0a4763e5a
2019-10-21 10:22:28 +02:00

518 B

title description date categories menu keywords signature hugoversion aliases
symdiff `collections.SymDiff` (alias `symdiff`) returns the symmetric difference of two collections. 2018-11-07
functions
docs
parent
functions
collections
intersect
union
complement
COLLECTION | symdiff COLLECTION
0.51

Example:

{{ slice 1 2 3 | symdiff (slice 3 4) }}

The above will print [1 2 4].

Also see https://en.wikipedia.org/wiki/Symmetric_difference