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

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

Parameters
ParameterDescription
otherElements to compare with this set.
Returns

A new hash set containing the symmetric difference.

Example
import klyn.collections

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