Wolfram Research

Function Repository Resource:

SymbolsWithOption

Source Notebook

Find and list all symbols with a particular option

Contributed by: Lou D'Andria

ResourceFunction["SymbolsWithOption"][opt]

gives a list of the names of symbols that support the given option.

ResourceFunction["SymbolsWithOption"][opt,patt]

gives a list of names matching the string pattern patt.

Details and Options

ResourceFunction["SymbolsWithOption"] takes all the same options as Names.
ResourceFunction["SymbolsWithOption"][opt] is equivalent to ResourceFunction["SymbolsWithOption"][opt,"*"].

Examples

Basic Examples

List the names of all available symbols that support the IgnoreCase option:

In[1]:=
ResourceFunction["SymbolsWithOption"][IgnoreCase]
Out[1]=

List just those symbols whose names match the given string pattern:

In[2]:=
ResourceFunction["SymbolsWithOption"][IgnoreCase, "*Position*"]
Out[2]=

Options

List those symbols with a Method option whose name contains "nds" with any capitalization:

In[3]:=
ResourceFunction["SymbolsWithOption"][Method, "*nds*", IgnoreCase -> True]
Out[3]=

List those symbols with a Method option whose name is similar to "Solve":

In[4]:=
ResourceFunction["SymbolsWithOption"][Method, "Solve", SpellingCorrection -> True]
Out[4]=

Applications

List symbols that support both Modulus and Tolerance as options:

In[5]:=
Intersection[ResourceFunction["SymbolsWithOption"][Modulus], ResourceFunction["SymbolsWithOption"][Tolerance]]
Out[5]=

Properties and Relations

Options returns all the options of a given symbol:

In[6]:=
ResourceFunction["SymbolsWithOption"][AccuracyGoal]
Out[6]=
In[7]:=
Options[NSum]
Out[7]=

Neat Examples

List the option’s value for each symbol name in the result:

In[8]:=
# -> Options[ToExpression[#], Paneled] & /@ ResourceFunction["SymbolsWithOption"][Paneled]
Out[8]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Resource History

See Also

License Information