DistinctPermutations

DistinctPermutations[l]
gives all permutations of the multiset described by list l.

DetailsDetails