next-permutation-bits ( v -- w )


Vocabulary
math.combinatorics.bits

Inputs and outputs
van integer
wan integer


Word description
Generates the next bitwise permutation with the same number of set bits, given a previous lexicographical value.

Definition