ReplacePart
expr with the operand at position i replaced by new — Wolfram 1-based positions, negative counting from the end.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
ReplacePart✓ReplacePart(expr, i -> new)expr with its ith operand replaced (1-based; i < 0 counts from the end)ReplacePart(expr, {i, j, …} -> new)like the scalar form, drilling into nested operands along the given pathReplacePart(expr, {rule1, rule2, …})applies every rule, each position resolved against the RESULT of the earlier onesTyped signatures
| Type | Package | Applies |
|---|---|---|
(any, expression<Rule> | list<expression<Rule>>) -> any | combinatorics | always |
Examples
About
| Examples | 4 |
|---|---|
| Checked against | Wolfram Language 4 agree |
| Crosswalk | Wolfram Language |