ReplaceAt¶
Applies transformation rules to the parts of an expression at the given
position(s). The position is specified the same way as Position output, and
each targeted part is transformed with the first matching rule (parts that
match no rule are left unchanged).
Replace a single part:
Replace several parts at once:
Address a nested part:
Delayed rules evaluate per match:
A list of rules uses the first matching rule at each position:
The operator form ReplaceAt[rules, pos] is a function: