Rule¶
Rule[a, b] creates an immediate replacement rule (a -> b).
RuleDelayed[a, b] creates a delayed rule (a :> b) whose right-hand
side is re-evaluated every time the rule fires.
//, /. and //. all bind looser than ->, so a rule written as an
argument or a list item can be handed to a postfix function or replaced in:
A rule answers to a head replacement the way any other expression does: