Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Compute the evolution of a substitution system where replacements are specified by a priority list
ResourceFunction["PrioritizedSubstitutionSystem"][rule,init,pos] applies rule to init at the sequence of starting positions specifed by pos. | |
ResourceFunction["PrioritizedSubstitutionSystem"][rule,init,pos, "Compressed"] drops steps at which no update occurred. |
Apply the substitution system's rules at the third position of the string, followed by the eighth:
In[1]:= |
Out[1]= |
Use a list of rules and a list of positions:
In[2]:= |
Out[2]= |
Use a single rule:
In[3]:= |
Out[3]= |
Use a single position:
In[4]:= |
Out[4]= |
Return a compressed version:
In[5]:= |
Out[5]= |
This work is licensed under a Creative Commons Attribution 4.0 International License