finding the intersection of a list of Sets
- From: Suresh Jeevanandam <jm.suresh@xxxxxxxxx>
- Date: Tue, 31 Jan 2006 15:06:42 +0530
I have a list of sets in variable lsets .
Now I want to find the intersection of all the sets.
r = lsets[0] for s in r[0:]: r = r & s
Is there any other shorter way?
Thanks in advance, Suresh .
- Follow-Ups:
- Re: finding the intersection of a list of Sets
- From: Peter Otten
- Re: finding the intersection of a list of Sets
- Prev by Date: Re: Collecting IP range
- Next by Date: Re: Costly object creation (was : Having Trouble with Scoping Rules)
- Previous by thread: determinant
- Next by thread: Re: finding the intersection of a list of Sets
- Index(es):