Passing Function Arguments Through Lists in Mathematica
We can pass a list of arguments using Sequence
In Mathematica, passing a long list of arguments to a function might be tedious enough.
The function Sequence
simplifies this procedure. Here is an example.
f[ Sequence @@ argumentlist1, argument0 , Sequence @@ argumentlist2 ]/.{argumentlist1 -> {a1,b1,c1,d1,e1,f1}, argumentlist2-> {a2,b2,c2,d2}}
The result of it would be
f[a1,b1,c1,d1,e1,f1, argument0, a2,b2,c2,d2]
Planted:
by Lei Ma;
Similar Articles:
L Ma (2017). 'Passing Function Arguments Through Lists in Mathematica', Datumorphism, 02 April. Available at: https://datumorphism.leima.is/til/programming/mathematica/mathematica-passing-arguments-through-lists/.