Say I have an array of atoms like this:
['a', 'b', 'c']
(the length may be any)
And I want to create a list of sets that can be made with them:
[
['a'], ['b'], ['c'],
['a', 'b'], ['a', 'c'], ['b', 'c'],
['a', 'b', 'c']
]
Is it possible to do it easily in python?
Maybe it’s very easy to do, but I’m not getting it myself.
Thank you.
That sounds to me like
powerset: