New answers tagged

2 votes

Get the symbol name of the function's nth argument

I'm not sure what the "nth" argument is supposed to be, since n does not appear in the OP, just 2. So here's a way to ...
user avatar
  • 219k
6 votes
Accepted

Get the symbol name of the function's nth argument

The following does what you want: SetAttributes[Plo,HoldAll] Plo[fun__]:=SymbolName@@{Unevaluated@@Hold[fun][[{2}]]} Besides some cleanup of your function, the ...
user avatar
1 vote

Get the symbol name of the function's nth argument

Based on the answer in the comments, I can create Association that associates arg names to args. Could be useful. (Keys@GetArgs[...][[n]] is the nth arg) ...
user avatar
3 votes

What is the difference between Clear and ClearAll?

Let me rewrite the paragraph that you quote: In ClearAll the "all" stands for "all definitions". It does not stand for "all symbols". ...
user avatar
  • 4,448
5 votes
Accepted

What is the difference between Clear and ClearAll?

Leonid, I think, was cautioning against using ClearAll[] alone in hopes that this would clear all definitions and provide a "clean slate". The closest ...
user avatar
  • 61.5k

Top 50 recent answers are included