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

Rule (->)Replace


FilledSmallSquarelhs :> 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].

FilledSmallSquareRuleDelayed 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.

FilledSmallSquarelhs 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 The Mathematica Book: Section 2.4.1 and Section A.5.5.

FilledSmallSquare See also: Replace, SetDelayed, Rule.

Further Examples

Rule (->)Replace