Suppose that I have an arbitrary variable myVariable. Is there some function fun -- either built-in or one that I can define -- that will return a string "myVariable" when I pass it myVariable?
I would like the output...
myVariable = 123456; fun[myVariable] ...to give the output...
"myVariable"
... (a string output) for some function fun. Do you have any suggestions? Thanks so much.
SymbolName[Unevaluated[myvar]]. $\endgroup$