MapAt
f applied to the part of expr at position n, leaving the rest of expr unchanged.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
MapAt✓MapAt(f, expr, n)f applied at the (1-based, negative counts from the end) position nMapAt(f, expr, {{n1}, {n2}, …})f applied independently at each of several top-level positionsTyped signatures
| Type | Package | Applies |
|---|---|---|
((any) -> any, any, integer | list<list<integer>>) -> any | combinatorics | always |
Details
- A position named twice gets f applied twice there.
- Only top-level positions are answered here -- a nested path (into a sub-list) is left unevaluated.
Examples
Scope #
About
| Examples | 10 |
|---|---|
| Checked against | Wolfram Language 10 agree |
| Crosswalk | Wolfram Language |