I would like to reference by index Held arguments. For example:
Attributes[ func ]={ HoldAllComplete };
func[ args__ ]:=Module[ { argsList,arg1 },
(* In the function I would like to reference the Held args by indexing (e.g. args[[1]] ),
but anyway I try results in the args being evaluated. *)
argsList=List[ args ] (* causes the args to be evaluated *)
arg1=argsList[[1]] (* gives the evaluated arg 1 *)
]
I have spent some time looking at docs, but can't find anything which discusses this. Any suggestions as to where to look will be appreciated.