New Features

  • all_combinations
    • Feature: Return a list of all combinations.

      >>> result = all_combinations([1, 2, 2, 3, 4], 3)
      >>> print(result)
      [[1, 2, 2], [1, 2, 3], [1, 2, 4], [1, 3, 4], [2, 2, 3], [2, 2, 4], [2, 3, 4]]
      
  • n_th_combination
    • Feature: Return the n-th combination.

      >>> result = n_th_permutation(3, [1, 2, 2, 3, 4], 3)
      >>> print(result)
      [1, 3, 4]
      
  • n_to_m_th_combinations
    • Feature: Return list of combinations from n-th to m-th.

      >>> result = n_to_m_th_combinations(2, 4, [1, 2, 2, 3, 4], 3)
      >>> print(result)
      [[1, 2, 4], [1, 3, 4], [2, 2, 3]]
      
  • CombinationGenerator
    • Feature: A class that generates combinations.

Modified Features

  • Changed the name of the modules for permutation.
    • all_permutation -> all_permutations

    • n_to_m_th_permutation -> n_to_m_th_permutations

    • all_permutation -> all_permutations

Deleted Features

Bug Fixes