I have a list of 100 things:
endings = ".w_" <> ToString[#] <> "_cold.r_0" <> ".xvg" & /@ Table[i, {i, 0, 99, 1}]
And I'm trying to add 20 different prefixes to the 100 elements, so that I have a list of lists, so I have 20 lists of 100 elements each.
When I try and map onto endings:
all = {"t_" <> ToString[#] <> endings} & /@ Table[i, {i, 0, 95, 5}]
I get a list of 20 lists, each of length 1. The thing I'm appending in all "t_" <> ToString[#]
only gets appended to the beginning of the long string for each list. I need to add it to each element in endings.
I tried playing with where I put the {} when I did the mapping in all to no avail.
Is there a nifty way to do this in Mathematica?