给定以下两个IEnumerable(Of String)
未知长度,我怎样才能产生非明显联合?
Dim theseStrings As IEnumerable(Of String) =
{"true", "true", "true", "true", "true"}
Dim thoseStrings As Ienumerable(Of String) =
{"false", "true", "false", "false"}
结果应如下所示:
{"false", "true", "false", "false", "true"}
意思是
- 的必须等于的
Count
_result
Count
theseStrings
- 两人意见不一致,
thoseStrings
优先
规则
- 没有清单或任何具体的东西
- 没有循环
我试过了
Dim result = theseStrings.Union(thoseStrings)
' result = {"true"}
Dim result = theseString.Concat(thoseStrings)
' result = {"true", "true", "true", "true", "true", "false", "true", "false", "false"}