] generates a list of all possible permutations of the elements in list.
There are permutations of a list of distinct elements.
Repeated elements are treated as identical.
The object list need not have head List.
See the Mathematica book: Section 1.8.13.
See also: Sort, Signature, Reverse, RotateLeft.
Related package: DiscreteMath`Permutations`, DiscreteMath`Combinatorica`.
Here are all the 24 permutations on 4 letters.
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER
FOR THE LATEST INFORMATION.