Lazily computes all permutations of r using Heap's algorithm.
While generating a new item is in O(k) (amortized O(1)), the number of permutations is |n|!.
random access field. A field may not have iteration primitivies.
Forward range, which yields the permutations
Permutations
See Implementation
Lazily computes all permutations of r using Heap's algorithm.
While generating a new item is in O(k) (amortized O(1)), the number of permutations is |n|!.