What about the argument that you can always permute indices if you want all distinct permutations?
On Fri, Nov 20, 2015 at 1:24 PM, Jiahao Chen <cjia...@gmail.com> wrote: > The current behavior of permutations is correct and should not be changed. > Combinatorially, arrays are multisets, not sets, since they allow for > duplicate entries, so it is correct to produce what look like identical > permutations. The redundancy is important for operations that can be > expressed as sums over all permutations. > > Combinatorics.jl currently provides multiset_permutations for generating > only distinct permutations: > > > https://github.com/JuliaLang/Combinatorics.jl/blob/3c08c9af9ebeaa54589e939c0cf2e652ef4ca6a0/test/permutations.jl#L24-L25 >