collections.SymDiff
Returns the symmetric difference of two collections.
Syntax
COLLECTION | collections.SymDiff COLLECTION
Returns
any
Alias
symdiff
Example:
{{ slice 1 2 3 | symdiff (slice 3 4) }} → [1 2 4]
Also see https://en.wikipedia.org/wiki/Symmetric_difference.
Last updated:
March 5, 2025
:
content: Remove "related" array from function and method pages (2fcd21ee5)
Improve this page