Hi all,
I want to achieve the following:
I have a list
l = {{"First", {{"1", "1"}, {"1", "2"}}}, {"Second", {{"2",
"1"}, {"2", "2"}}}};
and some pure function
f[#1, #2] &
I want the argument #1 to be the first string and #2 the list that follows. Like so:
f["First",{{"1", "1"}, {"1", "2"}}]
My guess is, that the way to go would be to Apply[]
the function to a Map[]
of the list. Is that the correct thinking? I've tried a lot of combinations and nothing works. Also, in general, how would I use the @@
and /@
operators in a row?
Thank you and all the best
Timo