I have a table of parameter pairs a and b {{a1, b1}, {a2, b2}, ...} and I would like to evaluate a function with these parameter pairs. What I tried so far:
Table[a + b, {a, {1, 2}}, {b, {3, 4}}]
As a result I do get:
{{4, 5}, {5, 6}}
So Mathematica evaluated the function a + b with all possible combinations of the list of a and b. However, I would like to have a table with the evaluation of the fuction 1st with a = 1 and b = 3 and then with a = 2 and b = 4 and not the other combinations. How do I realize this?
MapThread[foo, {{1, 2}, {3, 4}}]orInner[foo, {1, 2}, {3, 4}, List]orfoo @@@ Transpose[{{1, 2}, {3, 4}}]orThread[foo[{1, 2}, {3, 4}]]?? – kglr Jan 23 '18 at 16:11Plusforfooto get youra+bexample. – kglr Jan 23 '18 at 16:12f @@@ {{1, 3}, {2, 4}}? – Michael E2 Jan 23 '18 at 16:25