Hi Francois
Since Table
has the HoldAll
attribute this does not work
xRange = {x, 1, 4};
Table[x, xRange]
(* Non-list iterator xRange at position 2 does not evaluate to a real numeric value *)
Have to force evaluation
Table[x, Evaluate@xRange]
(* {1, 2, 3, 4} *)
To keep the range separate from the iteration symbol
range = {1, 4};
Table[x, Evaluate@{x, Splice@range}]
(* {1, 2, 3, 4} *)