Home > @silence_zhpf/utils > HashSet > intersection
该函数返回一个新的 HashSet,它包含当前 HashSet 和另一个 HashSet 的交集。
Signature:
intersection(other: HashSet<T>): HashSet<T>;
Parameter | Type | Description |
---|---|---|
other | HashSet<T> | 另一个HashSet 对象。 |
Returns:
HashSet<T>
两个HashSet
的交集。