This is a simple question about slots but I still cant see how to do it after searching stackexchange.
(I'm importing a large data file as text and to convert to numbers I think it'll be quicker to import it all as a list of strings and then apply Internal`StringToDouble to each element rather than using Import "Table". I can relatively quickly importing using Import["file","CSV"] as opposed to Import["file","Table"] which would convert it to data for me but slowly).
So say I have a list of strings test:
test={{"1.e9 2.e9 3.e9 4.e9 5.e9"}, {"1.e10 2.e10 3.e10 4.e10 5.e10"}, {"1.e11 2.e11 3.e11 4.e11 5.e11"}, {"1.e12 2.e12 3.e12 4.e12 5.e12"}}
Then I want to split this into lists of data. For a single line this works:
line=1;
Internal`StringToDouble[StringSplit[test[[line, 1]]][[#]]] & /@ Range@5
But what is the syntax for including a #2 to apply this over all lines?
Internal`StringToDouble[StringSplit[test[[#2, 1]]][[#]]] & /@ Range@5
Map[Internal`StringToDouble, StringSplit @@@ test, {2}]
and report back. $\endgroup$