| Permutation Constructor (Int32) |
Initializes a new permutation of
Rank 0 with the supplied number of elements.
Namespace:
Kaos.Combinatorics
Assembly:
KaosCombinatorics (in KaosCombinatorics.dll) Version: 5.0.0.6
Syntax public Permutation(
int choices
)
Parameters
- choices
- Type: SystemInt32
Number of elements in the sequence.
Exceptions Examples using System;
using Kaos.Combinatorics;
namespace ExampleApp
{
class PnExample01
{
static void Main()
{
var pn = new Permutation (choices:4);
Console.WriteLine ($"n={pn.Choices}:\n");
foreach (var row in pn.GetRows())
Console.WriteLine ($"{row.Rank,2}: {row}");
}
}
}
See Also