klyn.collections.HashSetSync.symmetricDifference
method
public symmetricDifference(other as HashSetSync<T>) as HashSetSync<T>:
Description

Returns a new synchronized set containing elements present in exactly one of the two sets.

Parameters
ParameterDescription
otherElements to compare with this set.
Returns

A new synchronized hash set containing the symmetric difference.

Example
import klyn.collections

result = s:{1, 2, 3}.symmetricDifference(s:{3, 4})
assert result.size == 3
assert 3 not in result