ReplacePart

Delayed rules are evaluated once for each replacement:

Non-existing parts are simply ignored:

You can replace heads by replacing part 0:

(This is equivalent to Apply.)

Negative part numbers count from the end: