Python Forum
common element in some lists
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
common element in some lists
#1
i am wanting a function that does this. i get a list of list (any type sequence of any type sequences). it can even be sets (of course the inner containers must be hashable when the outer container is a set). what i want to find are all things that are in all the inner containers. i could create such a function. but i would like to know if python already has such a thing. if not, is there one in pypy (since the usage of this is for myself). i cannot imagine a name for this to be able to search for it.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
common element in some lists - by Skaperen - May-21-2021, 12:51 AM
RE: common element in some lists - by Gribouillis - May-21-2021, 06:39 AM
RE: common element in some lists - by Skaperen - May-21-2021, 05:49 PM
RE: common element in some lists - by Gribouillis - May-21-2021, 06:02 PM
RE: common element in some lists - by Skaperen - May-23-2021, 10:57 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020