// Iterate over all items, backwards

        public static void IterBeginEndBackwards <T>(ISorted <T> coll)
        {
            foreach (T x in coll.Backwards())
            {
                Console.Write("{0} ", x);
            }
            Console.WriteLine();
        }
Exemple #2
0
        // Iterate over all items, backwards
        public static void IterBeginEndBackwards <T>(ISorted <T> coll)
        {
            var range = coll.Backwards();

            Print(range);
        }