Rewrite round generation and add unit test
This commit is contained in:
1 parent
84e9163b96
commit
6d494b64b3
11 files changed
+240
-386
No files matched your search
@@ -2,6 +2,7 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
|
||||
namespace VocaluxeLib.Utils.Combinatorics
|
||||
{
|
||||
@@ -143,8 +144,7 @@ namespace VocaluxeLib.Utils.Combinatorics
|
||||
get
|
||||
{
|
||||
List<T> result = new List<T>(_K);
|
||||
for (int i = 0; i < _K; i++)
|
||||
result.Add(_Parent._Values[_CurSet[i]]);
|
||||
result.AddRange(_CurSet.Select(i => _Parent._Values[i]));
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user