Hello everyone,
A function is giving me a nested list of variable length, which I would like to use as argument for Intersection[list1, list2, ...] as a next step. But how can I get rid of those outer curly braces?
Intersection[] only accepts single lists as arguments, not one nested list. But I fail horribly at this very simple (?) task.
If the nested list had a fixed amount of elements, I could simply write
Intersection[%[[1]], %[[2]], ...]
But sometimes the nested list looks like this
{{1,2,3,4},{2,4,6}}
and sometimes like this
{{1,2},{2,3,4},{2,4,6}}
How to get to the next step, without knowing in advance the length of the nested list? The goal is something like
Intersection[{1,2},{2,3,4},{2,4,6}]
Thanks a lot already!
Oliver