Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Visualize matched brackets of a combinator
ResourceFunction["CombinatorBracketsPlot"][expr] visualizes the pairing of the brackets in the combinator expr. |
Appearance | Automatic | overall appearance |
"BracketCharacters" | Automatic | characters used to represent the brackets |
ColorRules | Automatic | color rules for points corresponding to the symbols present |
"IncludeTextForm" | True | whether to display the brackets of the combinator |
PlotStyle | Automatic | style to use |
Visualize a particular combinator:
In[1]:= |
|
Out[1]= |
|
Do not display brackets:
In[2]:= |
|
Out[2]= |
|
Use a "Mountain" appearance:
In[3]:= |
|
Out[3]= |
|
Without brackets:
In[4]:= |
|
Out[4]= |
|
Use a "Bush" appearance:
In[5]:= |
|
Out[5]= |
|
Without brackets:
In[6]:= |
|
Out[6]= |
|
Use a "Tree" appearance:
In[7]:= |
|
Out[7]= |
|
Without brackets:
In[8]:= |
|
Out[8]= |
|
Use any symbol:
In[9]:= |
|
Out[9]= |
|
Show various visualization styles for a combinator:
In[10]:= |
|
Out[10]= |
|
Use different bracketing characters:
In[11]:= |
|
Out[11]= |
|
Specify color rules for points corresponding to the symbols present:
In[12]:= |
|
Out[12]= |
|
Show with and without brackets:
In[13]:= |
|
Out[13]= |
|
Change the styling:
In[14]:= |
|
Out[14]= |
|
In[15]:= |
|
Out[15]= |
|
This work is licensed under a Creative Commons Attribution 4.0 International License