Wolfram Language Paclet Repository
Community-contributed installable additions to the Wolfram Language
Convenience and Experimental function implementations
Contributed by: Faizon Zaman
The functions defined in this paclet are for convenience or curiosity, covering edge generation, mapping, and operator forms.
To install this paclet in your Wolfram Language environment,
evaluate this code:
PacletInstall["FaizonZaman/MacroTools"]
To load the code after installation, evaluate this code:
Needs["FaizonZaman`MacroTools`"]
Map over sequences, or return Spliced maps:
In[1]:= | ![]() |
Out[1]= | ![]() |
In[2]:= | ![]() |
Out[2]= | ![]() |
In[3]:= | ![]() |
Out[3]= | ![]() |
Fan edges from parents to children:
In[4]:= | ![]() |
Out[4]= | ![]() |
In[5]:= | ![]() |
Out[5]= | ![]() |
In[6]:= | ![]() |
Out[6]= | ![]() |
Specify a function and its options before applying it to an expression:
In[7]:= | ![]() |
Out[7]= | ![]() |
In[8]:= | ![]() |
Out[9]= | ![]() |
Use the operator form of Flatten with a level spec:
In[10]:= | ![]() |
Out[10]= | ![]() |
Use a symbolic representation of odd and even indices:
In[11]:= | ![]() |
Out[11]= | ![]() |
In[12]:= | ![]() |
Out[12]= | ![]() |
In[13]:= | ![]() |
Out[13]= | ![]() |
In[14]:= | ![]() |
Out[14]= | ![]() |
In[15]:= | ![]() |
Out[15]= | ![]() |
Instead of applying Normal individually several times, use NormalFixedPoint:
In[16]:= | ![]() |
Out[16]= | ![]() |
In[17]:= | ![]() |
Out[17]= | ![]() |
In[18]:= | ![]() |
Out[18]= | ![]() |
In[19]:= | ![]() |
Out[19]= | ![]() |
In[20]:= | ![]() |
Out[20]= | ![]() |
Wolfram Language Version 13.3