RuleDelayed

or
represents a rule that transforms lhs to rhs, evaluating rhs only after the rule is used.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

holds its right-hand side unevaluated:

In[1]:=
Click for copyable input
Out[1]=

The right-hand side is evaluated separately each time it is used:

In[2]:=
Click for copyable input
Out[2]=
New in 1 | Last modified in 3
New to Mathematica? Find your learning path »
Have a question? Ask support »