少于1分钟
将以下英文翻译为中文:
https://gohugo.io/functions/symdiff/
collections.SymDiff
(alias symdiff
) returns the symmetric difference of two collections.
COLLECTION | symdiff COLLECTION
Example:
|
|
The above will print [1 2 4]
.
Also see https://en.wikipedia.org/wiki/Symmetric_difference