Exemple #1
0
 public static int[] Map(this int[] a1, doubling expression)
 {
     for (int i = 0; i < a1.Length; i++)
     {
         a1[i] = expression(a1[i]);
     }
     return(a1);
 }
Exemple #2
0
        private void HandleDouble(doubling performDouble)
        {
            performDouble();
            this.consecutivePasses = 0;
            string doubleString = (this.FinalContract().IsReDoubled()  ? "REDOUBLE" : "DOUBLE");

            //this.fullRecord.Add(doubleString);
            Console.WriteLine(this.FinalContract() + " was " + doubleString + "D");
            //return truth;
        }