public static IEnumerable<Permutation> GetPermutations(
int dimension
)Public Shared Function GetPermutations (
dimension As Integer
) As IEnumerable(Of Permutation)public:
static IEnumerable<Permutation^>^ GetPermutations(
int dimension
)static member GetPermutations :
dimension : int -> IEnumerable<Permutation> The number of permutations of dimension n is n!, which increases very rapidly as n increases. Even in cases where n! would overflow a Int32 or Int64, this method will successfully produce all permutations. Of course, in such cases, it will take a long time to enumerate them all.
| ArgumentOutOfRangeException | dimension is negative. |