SetAPI
01 Syntax
Microsoft.VisualBasic.ComponentModel.DataStructures.SetAPI
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| Intersection | 2 | Performs an intersection of two sets.(求交集,这个函数总是会挑选出s1集合之中的元素的) |
| VennExclusiveSet | 1 | |
| Intersection | 1 | |
| Contains | 1 |
03 Members
Intersection``1(
IEnumerable(Of ``0), IEnumerable(Of ``0), GetUid)Performs an intersection of two sets.(求交集,这个函数总是会挑选出s1集合之中的元素的)
Parameters
| Name | Type | Description |
|---|---|---|
s1 | IEnumerable(Of ``0) | Any set. |
s2 | IEnumerable(Of ``0) | Any set. |
Returns
A new Set object that contains the members that were common to both of the input sets.
Intersection``1(
IEnumerable(Of ``0), IEnumerable(Of ``0), IEquals)Performs an intersection of two sets.(求交集)
Parameters
| Name | Type | Description |
|---|---|---|
s1 | IEnumerable(Of ``0) | Any set. |
s2 | IEnumerable(Of ``0) | Any set. |
Returns
A new Set object that contains the members that were common to both of the input sets.
VennExclusiveSet(
Dictionary(Of String, String()), String())Parameters
| Name | Type | Description |
|---|---|---|
groups | Dictionary(Of String, String()) | - |
commonIds | String() | common ids in all groups, if you do not need this parameter, you can set it to |
Returns
exclusive ids in each groups
Intersection(
IEnumerable(Of T), IEnumerable(Of T), GenericLambda(Of T))Contains(
IEnumerable(Of T), T, GenericLambda(Of T))