public static NewCustomList <T> Zip(NewCustomList <T> alpha, NewCustomList <T> bravo) { NewCustomList <T> List = new NewCustomList <T>(); if (alpha.count >= bravo.count) { for (int i = 0; i < alpha.count; i++) { List.Add(alpha[i]); if (bravo.count > i) { List.Add(bravo[i]); } } } else { for (int i = 0; i < bravo.count; i++) { if (alpha.count > i) { List.Add(alpha[i]); } List.Add(bravo[i]); } } return(List); }
public static NewCustomList <T> operator-(NewCustomList <T> alpha, NewCustomList <T> bravo) { NewCustomList <T> List = new NewCustomList <T>(); for (int i = 0; i < alpha.count; i++) { List.Add(alpha[i]); } for (int i = 0; i < bravo.count; i++) { List.Remove(bravo[i]); } return(List); }