How to union nested Sets / A single set from nested sets?

mviljamaa mviljamaa at kapsi.fi
Sun Jan 3 21:40:03 EST 2016


I'm forming sets by set.adding to sets and this leads to sets such as:

Set([ImmutableSet(['a', ImmutableSet(['a'])]), ImmutableSet(['b', 
'c'])])

Is there way union these to a single set, i.e. get

Set(['a', 'b', 'c'])

?



More information about the Python-list mailing list