sumDouble method

double sumDouble(
  1. double selector(
    1. T
    )
)

Implementation

double sumDouble(double Function(T) selector) {
  return fold(0.0, (sum, item) => sum + selector(item));
}