how best do I find the intersection of multiple sets in python?
Posted
by user116293
on Stack Overflow
See other posts from Stack Overflow
or by user116293
Published on 2010-03-29T22:44:19Z
Indexed on
2010/03/29
22:53 UTC
Read the original article
Hit count: 183
I have a list of sets:
setlist = [s1,s2,s3...]
I want s1 n s2 n s3 ...
I can write a function to do it by performing a series of pairwise s1.intersection(s2), etc., but is there a recommended, better, or built-in way?
© Stack Overflow or respective owner