小于 1 分钟
Home > @hz-9/algorithm > SetPlus
SetPlus class
A class that extends Set with additional functionalities.
一个扩展了 Set 的类,提供了额外的功能。
Signature:
export declare class SetPlus<T> extends Set<T>Extends: Set<T>
Methods
Method | Modifiers | Description |
|---|---|---|
| Gets the difference between SetA and SetB and returns a SetPlus instance. 获取 SetA 中存在但 SetB 中不存在的元素,并返回 SetPlus 实例。 | |
| Gets the intersection of two sets and returns a SetPlus instance. 获取两个集合的交集,并返回 SetPlus 实例。 | |
| Checks if SetB is a subset of SetA. 判断 SetB 是否为 SetA 的子集。 | |
Converts the set to a new Set object. 将集合转换为新的 Set 对象。 | ||
| Gets the union of two sets and returns a SetPlus instance. 获取两个集合的并集,并返回 SetPlus 实例。 |