小于 1 分钟
Home > @hz-9/algorithm > SetPlus > difference
SetPlus.difference() method
Gets the difference between SetA and SetB and returns a SetPlus instance.
获取 SetA 中存在但 SetB 中不存在的元素,并返回 SetPlus 实例。
Signature:
static difference<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 difference set as a SetPlus instance.