Rule
lhs -> rhs can be used in replacement functions to say that instances of lhs should be replaced with rhs.
Attributes[Rule] := {Protected, SequenceHold}
Simple examples
To demonstrate the difference betweenRule and RuleDelayed:
lhs -> rhs can be used in replacement functions to say that instances of lhs should be replaced with rhs.
Attributes[Rule] := {Protected, SequenceHold}
Rule and RuleDelayed: