I want to replace, say,
f@list[[i]]. I can use
ReplacePart as below, but I would like a more elegant way of doing it.
list = ReplacePart[list, i -> f@list[[i]]]; list = operateOnPart[list, i, f];
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.Sign up to join this community