Next highest int from digits: Difference between revisions
m
→{{header|Factor}}: English is harder than code sometimes
m (→{{header|Factor}}: English is harder than code sometimes) |
|||
Line 60:
=={{header|Factor}}==
This uses the <code>next-permutation</code> word from the <code>math.combinatorics</code> vocabulary. <code>next-permutation</code> wraps around and returns the smallest lexicographic permutation after the largest one, so
{{works with|Factor|0.99 2020-01-23}}
<lang factor>USING: formatting grouping kernel math math.combinatorics
|