| MulticombinationGetRowsForPicks Method |
Iterate thru all rows of all
Multicombination tables for every pick
in the range (
startPicks..
stopPicks).
Namespace:
Kaos.Combinatorics
Assembly:
KaosCombinatorics (in KaosCombinatorics.dll) Version: 6.0.0.0
Syntax Exceptions Remarks Examples using System;
using System.Linq;
using Kaos.Combinatorics;
namespace ExampleApp
{
public class LettersXYZ : Multicombination
{
static string[] letters = { "X", "Y", "Z" };
public LettersXYZ() : base (letters.Length)
{ }
public override string ToString()
{ return String.Concat (from ei in this select letters[ei]); }
}
class McExample02
{
static void Main()
{
foreach (var row in new LettersXYZ().GetRowsForPicks (1, 4))
Console.WriteLine ($"Rank {row.Rank,2}: {row}");
}
}
}
See Also