If you have some defined function, say f[a_, b_ c_, x]
, one can initialize this by using With[...]
as
With[
{a = 1, b = 2, c = 3},
f[a, b c, x]
]
However I would like to be able to put my variable specification list into its own variable as:
InitializationList = {a = 1, b = 2, c = 3};
And then use it in the argument of the With[...]
as
With[
InitializationList ,
f[a, b, c, x]
]
However Mathematica 12.0 complains with saying that InitializationList
is not a list of variable specifications. I have tried using Evaluate
and Holdform
, but I get the same error.
Any suggestions to achieve what I want or an alternative process?