public static double sum ( double zero , Iterable < ? extends Number > values ) { for ( Number value : values ) { zero += value . doubleValue ( ) ; } return zero ; }
Sums the supplied collection of numbers to a double with a left to right fold .