Function Repository Resource:

FullSymbolName

Source Notebook

Return a fully qualified name of a symbol regardless of current context settings

Contributed by: Richard Hennigan (Wolfram Research)

ResourceFunction["FullSymbolName"][symbol]

returns the fully qualified name of symbol.

Examples

Basic Examples (1) 

Use the function:

In[1]:=
ResourceFunction["FullSymbolName"][Plus]
Out[1]=

Scope (2) 

Retrieve the ResourceFunction:

In[2]:=
ResourceFunction["FullSymbolName"]
Out[2]=

Retrieve the ResourceObject:

In[3]:=
ResourceObject["FullSymbolName"]
Out[3]=

Use a string as input:

In[4]:=
ResourceFunction["FullSymbolName"]["Plus"]
Out[4]=

Possible Issues (3) 

String inputs are only accepted when they correspond to a symbol that already exists:

In[5]:=
ResourceFunction["FullSymbolName"]["mySymbol"]
Out[5]=
In[6]:=
mySymbol;
ResourceFunction["FullSymbolName"]["mySymbol"]
Out[6]=

Arguments are held:

In[7]:=
x;
name = "x";
ResourceFunction["FullSymbolName"][name]
Out[7]=

Insert arguments before evaluating:

In[8]:=
With[{name = name}, ResourceFunction["FullSymbolName"][name]]
Out[8]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Version History

  • 1.0.0 – 15 August 2018

Related Resources

License Information