WOLFRAM LANGUAGE FEATURED EXAMPLE

Use Rules Iteratively

While ReplaceAll (/.) applies rules to an expression only once, ReplaceRepeated (//.) will continue to do so until the expression no longer changes.

    
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
You can also use ReplaceRepeated to undo "currying" of function arguments:
In[4]:=
Click for copyable input
Out[4]=
Translate this page: