//public static List<object> MapCar(params List<object>[] partlst)
public static List<object> MapCar(List<object> partlst)
{
List<object> newlst = new List<object>();
List<object> nowlst = new List<object>();
int max = partlst.Max(x => x.Count);
for (int i = 0; i < max; i++)
{
for (int j = 0; j < partlst.Length; j++)
{
if (i < partlst[j].Count) nowlst.Add(partlst[j][i]);
}
newlst.Add(nowlst);
nowlst = new List<object>();
}
return newlst;
}
public static List<object> MapCar(object[] partlst)
{
return MapCar(partlst.ToList()).ToArray();
}