Return a list of strings for all symbols in the given context that have values associated with them
Contributed by:
Wolfram|Alpha Math Team
Examples
Basic Examples (3)
Clear all global symbols:
Set a function to place its head in the global context:
Check that it is now a global symbol:
Scope (2)
Clear all global symbols:
DefinedSymbols checks for symbols in the global context with any OwnValues, DownValues or UpValues:
Clear all global symbols:
Find a symbol with UpValues:
Properties and Relations (1)
DefinedSymbols is more nuanced than simply calling Names to get all symbols in a context:
Possible Issues (2)
Remove all global symbols:
DefinedSymbols is more subtle than Names:
Publisher
Wolfram|Alpha Math Team
Version History
-
2.0.0
– 23 March 2023
-
1.0.0
– 21 October 2020
Related Resources
Author Notes
To view the full source code for DefinedSymbols, evaluate the following: