Less than 1 minute
Home > @hz-9/algorithm > SetPlus > intersection
SetPlus.intersection() method
Gets the intersection of two sets and returns a SetPlus instance. 获取两个集合的交集,并返回 SetPlus 实例。
Signature:
static intersection<T>(setA: Set<T>, setB: Set<T>): SetPlus<T>;Parameters
Parameter | Type | Description |
|---|---|---|
setA | Set<T> | The first set. |
setB | Set<T> | The second set. |
Returns:
SetPlus<T>
The intersection set as a SetPlus instance.