Jump to content

Permutations: Difference between revisions

m
(Added Bracmat)
Line 494:
 
=={{header|Bracmat}}==
<lang bracmat> ( perm
= prefix List result original A Z
. !arg:(?.)
Line 508:
& out$(perm$(.a 2 "]" u+z);</lang>
Output:
<langpre> (a 2 ] u+z.)
(a 2 u+z ].)
(a ] u+z 2.)
Line 531:
(u+z 2 a ].)
(u+z ] a 2.)
(u+z ] 2 a.)</langpre>
 
=={{header|C}}==
See [[wp:Permutation#Systematic_generation_of_all_permutations|lexicographic generation]] of permutations.
483

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.