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:
January 26, 2024
:
Squashed 'docs/' changes from 4dd2d6415..3b1a8579d (7125ad401)
Improve this page