Let's say I have an operation like
Intersection[{1, 2, 3}, {1, 2, 3}, {-1, -2, -9}, SameTest -> (Abs[#1] == Abs[#2] &)]
but the arguments are being handed to me in the form of a list like
a={{1, 2, 3}, {1, 2, 3}, {-1, -2, -9}};
How do I pass a to the Intersection function above?
Intersection[a, SameTest -> (Abs[#1] == Abs[#2] &)]
doesn't work and neither does
Apply[Intersection[#, SameTest -> (Abs[#1] == Abs[#2] &)] &, a]
What should I be doing?
Sequence. – b.gates.you.know.what Jul 07 '16 at 19:30