I feel that this must be a duplicate. But I just can't find such a post.
Mathematica has HoldFirst
, HoldRest
, HoldAll
.
Why are these three "Hold"s sufficient? Why there is no HoldSecond
, HoldThird
, ... HoldN
?
What if I want to hold several variables at different positions? For example how can I hold first and third at the same time?
HoldAll
give you unwanted consequences in the case you describe? $\endgroup$ – MarcoB Nov 2 '15 at 16:38f[heldStuff_List, notHeld1_,...]
withHoldFirst
? $\endgroup$ – N.J.Evans Nov 2 '15 at 21:06HoldAll
works for the function that I am currently working with. $\endgroup$ – matheorem Nov 3 '15 at 1:23