Permutations: Difference between revisions

Line 1,564:
[3, 1, 2]
[3, 2, 1] */</lang>
 
===Builtin version===
<lang maxima>
(%i1) permutations([1,2,3]);
(%o1) {[1, 2, 3], [1, 3, 2], [2, 1, 3], [2, 3, 1], [3, 1, 2], [3, 2, 1]}
</lang>
 
=={{header|OCaml}}==
Anonymous user