nextp function

Next permutation

Next permutation

Cycles through permutations of first argument

nextp(perm, b = 1)

Arguments

  • perm: indices to be permutedj
  • b: number to begin at. Set equal to 1.

Returns

The next permutation

  • Maintainer: John E. Kolassa
  • License: GPL-2
  • Last published: 2023-08-30

Useful links