This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Documentation / Mathematica / Built-in Functions / Programming / Rule Application /

Further Examples: Rule (->)

The rule is used to replace each occurrence of x with the number 2.

In[1]:=

Out[1]=