Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Find symbols whose definition contains specified pattern
ResourceFunction["SymbolCases"]["context",patt] finds all symbols in context which have a definition that contains patt at any level. |
Define a simple package:
In[1]:= |
Find symbols in the package whose definition contains the specified word:
In[2]:= |
Out[2]= |
The result is a list of strings:
In[3]:= |
Out[3]= |
Define a package that sets DownValues, OwnValues, UpValues, SubValues and FormatValues of symbols:
In[4]:= |
Find package symbols that have integers in their definitions:
In[5]:= |
Out[5]= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License