public static Customlist <T> operator +(Customlist <T> one, Customlist <T> two) { int counter2 = 0; int counter = 0; Customlist <T> newlist = new Customlist <T>(); while (counter < (one.count)) { newlist.Add(one[counter]); counter++; } while (counter2 < (two.count)) { newlist.Add(two[counter2]); counter2++; } return(newlist); }
public Customlist <T> Zip(Customlist <T> list1) { int counter1 = 0; Customlist <T> zipped = new Customlist <T>(); int turnstile; if (count > list1.Count) { turnstile = count; } else { turnstile = list1.Count; } while (counter1 < turnstile) { zipped.Add(list[counter1]); zipped.Add(list1[counter1]); counter1++; } return(zipped); }