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); }
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(); }