sumByInt method

int sumByInt(
  1. int toDouble(
    1. T t
    )
)

Implementation

int sumByInt(int toDouble(T t)) {
  return this.map(toDouble).sumInt();
}