Home > @silence_zhpf/utils > HashSet > difference
该函数返回一个新的 HashSet,其中包含当前 HashSet 但不在另一个 HashSet 中的元素。
Signature:
difference(other: HashSet<T>): HashSet<T>;
Parameter | Type | Description |
---|---|---|
other | HashSet<T> | 另一个HashSet 对象。 |
Returns:
HashSet<T>
两个HashSet
的差集。