Say that I have a list of the form
A={1,2,{{3,4},{5,6}}}
I want to manipulate the first elements of the last sublist. For example, in the case of multiplication by two, the resulting matrix should become
B={1,2,{{6,4},{10,6}}}
In my case, the third sublist contains around 40,000 pairs of numbers. If possible, I would like to avoid iterating through each data point. Any help would be greatly appreciated.
B = A; B[[-1, All, 1]] *= 2;, related: 42455 – Kuba Jun 15 '19 at 12:54SubsetMap? – Carl Lange Jun 15 '19 at 13:06