Next highest int from digits: Difference between revisions
m
→{{header|Factor}}: change a word
m (→Python: Algorithm 1: ed.) |
m (→{{header|Factor}}: change a word) |
||
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 permutation after the largest one, so the only thing we have to do is check if we're at the
{{works with|Factor|0.99 2020-01-23}}
<lang factor>USING: formatting grouping kernel math math.combinatorics
|