Ejemplo n.º 1
0
        static object Sum(List <Expression> p)
        {
            var tally = new Tally();

            foreach (Expression e in p)
            {
                tally.Add(e);
            }
            return(tally.Sum());
        }
Ejemplo n.º 2
0
        // utility for tallying statistics
        static Tally GetTally(List <Expression> p, bool numbersOnly)
        {
            var tally = new Tally(numbersOnly);

            foreach (Expression e in p)
            {
                tally.Add(e);
            }
            return(tally);
        }
Ejemplo n.º 3
0
 // utility for tallying statistics
 static Tally GetTally(List<Expression> p, bool numbersOnly)
 {
     var tally = new Tally(numbersOnly);
     foreach (Expression e in p)
     {
         tally.Add(e);
     }
     return tally;
 }
Ejemplo n.º 4
0
 static object Sum(List<Expression> p)
 {
     var tally = new Tally();
     foreach (Expression e in p)
     {
         tally.Add(e);
     }
     return tally.Sum();
 }