Generator of unique combinations form a list L of objects in groups of size n.
Parameters: | L : list
n : int
Adopted from Li Daobing : http://code.activestate.com/recipes/190465/ : (MIT license, according to activestate.com’s policy) : Also good discussions on combinations/variations/permutations : with various implementations are available at : http://mail.python.org/pipermail/python-list/2004-October/286054.html : |
---|