How to create the union of many sets using a generator expression?

Viewed 15155

Suppose I have a list of sets and I want to get the union over all sets in that list. Is there any way to do this using a generator expression? In other words, how can I create the union over all sets in that list directly as a frozenset?

3 Answers
Related