Mathematica 9 is now available

Rule (->)Replace

RuleDelayed

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



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.