Rule
lhs -> rhs represents a rule that transforms lhs to rhs.
Examples
Simple replacement rule:
x /. x -> 5
(* 5 *)Multiple rules:
{a, b, c} /. {a -> 1, b -> 2}
(* {1, 2, c} *)Please visit the official Wolfram Language Reference for more details.
lhs -> rhs represents a rule that transforms lhs to rhs.
Simple replacement rule:
x /. x -> 5
(* 5 *)Multiple rules:
{a, b, c} /. {a -> 1, b -> 2}
(* {1, 2, c} *)Please visit the official Wolfram Language Reference for more details.