News for hackers. Stuff that matters.
Re:Python Language Features and Tricks by rockymeza on Sunday March 09, 2014 @09:41AM (#7368421)
You can also do

    itertools.chain.from_iterable(itertools.combinations(a, n) for n in range(len(a) + 1))

There are no comments on this comment yet.