Permutations: Difference between revisions

m
m (→‎{{header|REXX}}: changed the argument documentation, also added a comment in the header section. -- ~~~~)
Line 1,565:
)$
print_perm(n) := block([v: makelist(i, i, 1, n)],
v: makelist(i, i, 1, n),
disp(v),
while next_permutation(v) do disp(v)
Anonymous user