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, letter‐like 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 allBasic Examples (1)
Scope (4)
Properties & Relations (9)
Symbol creates new symbols in the current context:
Unique creates symbols with a unique new name:
Module creates new temporary symbols every time it is evaluated:
Symbol and SymbolName are inverses of each other:
Many functions of symbols also accept symbol names as arguments:
Context gives the context of a symbol:
Possible symbol names can be characterized by regular expressions:
Symbol resolves context aliases:
LocalSymbol and CloudSymbol provide for persistent storage of values:
Text
Wolfram Research (1988), Symbol, Wolfram Language function, https://reference.wolfram.com/language/ref/Symbol.html (updated 1996).
CMS
Wolfram Language. 1988. "Symbol." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 1996. https://reference.wolfram.com/language/ref/Symbol.html.
APA
Wolfram Language. (1988). Symbol. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Symbol.html