next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Macaulay2Doc :: uniquePermutations

uniquePermutations -- produce all unique permutations of a list



i1 : uniquePermutations {a,b,a,b}

o1 = {{a, b, a, b}, {a, b, b, a}, {a, a, b, b}, {b, a, a, b}, {b, a, b, a},
     {b, b, a, a}}

o1 : List

Ways to use uniquePermutations :

For the programmer

The object uniquePermutations is a method function.