Vocabularymath.
combinatoricsInputsOutputsWord descriptionRearranges the elements in
seq into the lexicographically next greater permutation of elements.
NotesPerforms an in-place modification of
seq.
ExamplesUSING: math.combinatorics prettyprint ;
"ABC" next-permutation .
"ACB"
Definition