F
Frankdot
Guest
I am trying to merge many lists into one but without success.
Here's what i have tried, anyone can tell me what's wrong.
List<double> tlist = new List<double>() {alist[a]};
List<double> ttlist = new List<double>() {zlist[z]};
var list = tlist.Concat(ttlist).ToList();
List<double> ulist = tlist.Union(ttlist).ToList();
Print(ulist);
I tried with concat and union but i always get an error message:
System.Collections.Generic.List`1[System.Double]
I have to mention that those lists are from another lists like:
List<double> alist = new List<double>() {xlist[y]};
for(int a = 0; a < alist.Count; a++)
{
alist[a] = (alist[a] + counter) / (someOtherInt - counter);
thank you
Continue reading...
Here's what i have tried, anyone can tell me what's wrong.
List<double> tlist = new List<double>() {alist[a]};
List<double> ttlist = new List<double>() {zlist[z]};
var list = tlist.Concat(ttlist).ToList();
List<double> ulist = tlist.Union(ttlist).ToList();
Print(ulist);
I tried with concat and union but i always get an error message:
System.Collections.Generic.List`1[System.Double]
I have to mention that those lists are from another lists like:
List<double> alist = new List<double>() {xlist[y]};
for(int a = 0; a < alist.Count; a++)
{
alist[a] = (alist[a] + counter) / (someOtherInt - counter);
thank you
Continue reading...