Exemple #1
0
        static void Main(string[] args)
        {
            var input = args;

            if (input.Length <= 1)
            {
                input = ParseStandardInput();
            }

            foreach (var str in input)
            {
                Console.WriteLine("String read");

                Console.WriteLine(str);

                var intArray = new IntArray(str);

                Console.WriteLine("Before Flatten");

                // Before Flatten
                intArray.Print();

                Console.WriteLine("After Flatten");

                // After Flatten
                var newIntArray = intArray.Flatten();

                newIntArray.Print();
            }
        }