# toqito.perms.unique_perms¶

toqito.perms.unique_perms(elements: list)[source]

Determine the number of unique permutations of a list.

Examples

Consider the following vector

$\left[1, 1, 2, 2, 1, 2, 1, 3, 3, 3\right].$

The number of possible permutations possible with the above vector is $$4200$$. This can be obtained using the toqito package as follows.

>>> from toqito.perms import unique_perms
>>> vec_nums = [1, 1, 2, 2, 1, 2, 1, 3, 3, 3]
>>> len(list(unique_perms(vec_nums)))
4200

Parameters: elements – List of integers. The number of possible permutations possible.