sum method

num sum(
  1. String column
)

Sum of numeric values in a column.

Implementation

num sum(String column) {
  num total = 0;
  for (final v in this.column(column)) {
    if (v is num) total += v;
  }
  return total;
}