Table of Contents

Method Permutations

Namespace
Gamelogic.Extensions.Algorithms
Assembly
Gamelogic.Extensions.dll

Permutations(int)

Generates all permutations of the numbers 0 to n - 1.

public static IEnumerable<int[]> Permutations(int n)

Parameters

n int

Returns

IEnumerable<int[]>

Permutations<T>(IEnumerable<T>)

Generates all permutations of the list of elements.

public static IEnumerable<T[]> Permutations<T>(this IEnumerable<T> list)

Parameters

list IEnumerable<T>

Returns

IEnumerable<T[]>

Type Parameters

T