New Features
- all_permutation
Feature: Return a list of all permutations.
>>> result = all_permutation([1, 2, 3, 3], 2) >>> print(result) [[1, 2], [1, 3], [2, 1], [2, 3], [3, 1], [3, 2], [3, 3]]
- n_th_permutation
Feature: Return the n-th permutation.
>>> result = n_th_permutation(3, [1, 2, 3, 3], 2) >>> print(result) [2, 3]
- n_to_m_th_permutation
Feature: Return list of permutations from n-th to m-th.
>>> result = n_to_m_th_permutation(2, 4, [1, 2, 3, 3], 2) >>> print(result) [[2,1],[2,3],[3,1]]
- PermutationGenerator
Feature: A class that generates permutations.