utils

Home > @silence_zhpf/utils > HashSet > symmetricDifference

HashSet.symmetricDifference() method

此函数返回两个哈希集之间的对称差异。

Signature:

symmetricDifference(other: HashSet<T>): HashSet<T>;

Parameters

Parameter Type Description
other HashSet<T> 另一个HashSet对象。

Returns:

HashSet<T>

一个新的 HashSet,它包含当前 HashSet 和作为参数传递的另一个 HashSet 之间的对称差异。