Wolfram Computation Meets Knowledge

FullSymbolName

Contributed by: Richard Hennigan (Wolfram Research)

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

ResourceFunction["FullSymbolName"][symbol]

returns the fully qualified name of symbol.

Examples

Basic Examples

Use the function:

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

More Examples

Scope

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

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]=

Resource History