Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 2
    One approach would be to create a recursive function, that takes two or more arguments. Intersect the first two arguments, and call the function again with the result and the remaining arguments. Continue until you have no more arguments left. Commented Dec 9, 2021 at 13:16
  • 2
    Relevant: see this answer by georg Commented Dec 9, 2021 at 13:18
  • @Bergi the question in that thread is specificly for two sets, and that answer is pretty buried, and there's no incentive in that thread for coming up with better solutions for multiple sets. Commented Dec 9, 2021 at 13:45
  • 1
    @Nermin Ok I'll reopen and repost the answer for more visibility Commented Dec 9, 2021 at 14:06