Change distinct_permutations implementation: prune all permutations with repeated elements unordered.
Change distinct_permutations implementation: prune all
permutations with repeated elements unordered.

erikrose/more-itertools,more-itertools/more-itertools