Symbol

Symbol["name"]

refers to a symbol with the specified name.

Details

  • All symbols, whether explicitly entered using Symbol or not, have head Symbol.
  • x_Symbol can be used as a pattern to represent any symbol.
  • The string "name" in Symbol["name"] must be an appropriate name for a symbol. It can contain any letters, letterlike forms, or digits, but cannot start with a digit.
  • Symbol["name"] creates a new symbol if none exists with the specified name.
  • A symbol such as x has a name "x".
  • If Symbol["name"] creates a new symbol, it does so in the context specified by $Context.

Examples

open allclose all

Basic Examples  (1)

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Scope  (4)

Applications  (1)

Properties & Relations  (8)

Possible Issues  (1)

See Also

SymbolName  ToExpression  Unique  Remove  LocalSymbol  CloudSymbol  WolframLanguageData

Tutorials

Introduced in 1988
(1.0)
| Updated in 1996
(3.0)