SymbolName

SymbolName[symbol]

gives the name of the specified symbol.

Details

Examples

open allclose all

Basic Examples  (1)

The name of the symbol x is the string "x":

Properties & Relations  (3)

Symbol and SymbolName are inverses of each other:

Many functions of symbols also accept symbol names as arguments:

SymbolName always gives the short name, without any context:

ToString takes the settings of $Context and $ContextPath into account:

Possible Issues  (1)

SymbolName evaluates its input:

Introduced in 1996
 (3.0)