Пример #1
0
        public static List <int> Map(this int[] input, mapdel operation)
        {
            List <int> trans = new List <int>();

            foreach (int item in input)
            {
                trans.Add(operation(item));
            }
            return(trans);
        }
Пример #2
0
        public static List <int> Map(this int[] j, mapdel operation)
        {
            List <int> trans = new List <int>();

            foreach (int n in j)
            {
                trans.Add(operation(n));
            }
            return(trans);

            //throw new NotImplementedException();
        }