This function returns a set of values which are in either of the sets, but not in their intersection.
All of the examples assume that $set
is a set with {"a", "b", "c"}
.
(set-symdiff $set (new-set))
➜set{"a", "b", "c"}
(set-symdiff $set (new-set "b"))
➜set{"a", "c"}
(set-symdiff $set (new-set "d"))
➜set{"a", "b", "c", "d"}
This form returns a set of values which are in either of the sets, but not in their intersection.