Gerry wrote:
On Nov 8, 2:42 pm, Ozz <notva...@wathever.com> wrote:
vsoler schreef:
And, of course, you'd want to take a look a this: http://xkcd.com/287/
I've found 2 solutions.
(And I really should get back to what I was doing...)
Gerry
Instead of subsets, do you mean permutations/combinations? Since 2
invoices can have the same amount perhaps the terms permutation is
better.
As some other poster already suggested 'powerset'
(http://en.wikipedia.org/wiki/Power_set) may be a better name, except
for those duplicates, of course. On the other hand, I think viewing it
as a powerset is the most 'natural' in this case. (imo permutations are
about the order of objects, not about whether the objects are included
in a set or not)
cheers,
Ozz
--
http://mail.python.org/mailman/listinfo/python-list