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

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

RuleDelayed

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

FilledSmallSquare The character can be entered as AliasIndicator:>AliasIndicator or \[RuleDelayed].

FilledSmallSquare RuleDelayed has the attribute HoldRest.

FilledSmallSquare You can apply rules using Replace.

FilledSmallSquare The assignment lhs := rhs specifies that the rule lhs :> rhs should be used whenever it applies.

FilledSmallSquare You can use Condition to specify when a particular rule applies.

FilledSmallSquare lhs rhs can be entered as lhs \[RuleDelayed] rhs or lhs AliasIndicator:>AliasIndicator rhs.

FilledSmallSquare In StandardForm, RuleDelayed is printed using .

FilledSmallSquare See notes for Rule.

FilledSmallSquare See Section 2.5.1 and Section A.5.5.

FilledSmallSquare See also: Replace, SetDelayed, Rule.

FilledSmallSquare New in Version 1; modified in 3.

Further Examples