powered by
Cycles through permutations of first argument
nextp(perm, b = 1)
The next permutation
indices to be permutedj
number to begin at. Set equal to 1.