I have a list of the form:
lstA = {
{ {"a","b"}, -1.5},
{ {"c","d"}, -2 }
}
I wanto to add another value to each sublist that comes from another list
lstB = {-5,-10}
I would like the final list to look like
mergeList = {
{ {"a","b"}, -1.5, -5 },
{ {"c","d"}, -2,-10 }
}
I have tried using Append to get each sublist, and then append the value corresponding value from lstB:
Append[{#1, #2} & @@@ lstA, lstB]
Insert
or do you needAppend
? $\endgroup$