I want to get the intersection of all sublists of list in an easy way.
list = {{a,b,c},{d,e,a},{c,a,f}]}
Intersection[list[[1]],list[[2]],list[[3]]]
Intersection[list]
The first Intersection command works well (it gives {a}). But the second one does not work. I understand that there's a syntax error (list is a list of lists, but Intersection only takes individual lists. However, there must be a simple way around it? In my case, list has more than 3 sublists which makes it hard to write them all down.
Thanks
Apply[Intersection, list](orIntersection @@ list) – andre314 Oct 09 '15 at 21:48list = {{a, b, c}, {d, e, a}, {c, a, f}]}has a mistaken]– Enrique Pérez Herrero Oct 09 '15 at 21:49