[Python-ideas] Powerset

Hasan Diwan hasan.diwan at gmail.com
Tue Oct 16 02:27:26 EDT 2018

On Mon, 15 Oct 2018 at 23:25, Pål Grønås Drange <paal.drange at gmail.com> wrote:
> Hasan, if you recall that the powerset is just
> `yield from S choose k for k from 0 to |S|+1`,
> you see that that is exactly the implementation in the examples page.

I know that, but when one searches for a powerset function, the
logical place to look isn't itertools, it's the set class. -- H
OpenPGP: https://sks-keyservers.net/pks/lookup?op=get&search=0xFEBAD7FFD041BBA1
If you wish to request my time, please do so using bit.ly/hd1AppointmentRequest.
Si vous voudrais faire connnaisance, allez a bit.ly/hd1AppointmentRequest.

Sent from my mobile device
Envoye de mon portable

More information about the Python-ideas mailing list