小于 1 分钟
Home > @hz-9/algorithm > SetPlus > union
SetPlus.union() method
Gets the union of two sets and returns a SetPlus instance.
获取两个集合的并集,并返回 SetPlus 实例。
Signature:
static union<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 union set as a SetPlus instance.