public symmetricDifference(other as HashSetSync<T>) as HashSetSync<T>:
Returns a new synchronized set containing elements present in exactly one of the two sets.
| Parameter | Description |
|---|---|
other | Elements to compare with this set. |
A new synchronized hash set containing the symmetric difference.
import klyn.collections
result = s:{1, 2, 3}.symmetricDifference(s:{3, 4})
assert result.size == 3
assert 3 not in result