sum method

T sum()

Implementation

T sum(){
  return reduce<num>(0, (t, u) => t+u) as T;
}