RuleDelayed

lhs:>rhs or lhsrhs

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

Details

Examples

open allclose all

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]=

Applications  (3)

Properties & Relations  (6)

See Also

Rule  Replace  SetDelayed  Keys  Values  Association  KeyValuePattern

Tutorials

Introduced in 1988
(1.0)
| Updated in 1996
(3.0)