PermutationDescriptor.identity constructor
- int length
Creates an identity permutation of length.
Implementation
factory PermutationDescriptor.identity(int length) =>
PermutationDescriptor(List<int>.generate(length, (index) => index));
Creates an identity permutation of length.
factory PermutationDescriptor.identity(int length) =>
PermutationDescriptor(List<int>.generate(length, (index) => index));