Esempio n. 1
0
        public static WilliamsCustomList <T> Zip(WilliamsCustomList <T> odd, WilliamsCustomList <T> even)
        {
            WilliamsCustomList <T> myList = new WilliamsCustomList <T>();

            for (int i = 0; i < odd.count; i++)
            {
                myList.Add(odd[i]);
                myList.Add(even[i]);
            }
            return(myList);
        }
Esempio n. 2
0
        public static WilliamsCustomList <T> AddMethod(WilliamsCustomList <T> odd, WilliamsCustomList <T> even)
        {
            WilliamsCustomList <T> newList = new WilliamsCustomList <T>();

            for (int i = 0; i < even.count; i++)
            {
                newList.Add(even[i]);
            }
            for (int i = 0; i < odd.count; i++)
            {
                newList.Add(odd[i]);
            }
            return(newList);
        }