Hi, I have
GG1 = {{1,2,3,4.},{5,6,7,8}}
result ={ {{a,b},{a,c},{a,d},{a,a}},{{a,b1},{a,c1},{a,d1},{a,a1}} }
I'd like obtain : res1 = { {{1,b},{2,c},{3,d},{4,a}},{{5,b1},{6,c1},{7,d1},{8,a1}} } the length of result or GG1 is variable depending on the test case.
I have tried with this, but it doesn't run.
res1 = [ReplaceAll[result, MapThread[ Rule, {result[[i, All, 1]], GG1[[i]] &} , {i, 1, Length[GG1]}]]]
I hope in your help
Thank you