sum function sum<Type>(iter:Iterator<Type>) -> Type Sum reduction. function sum<Type>(x:Type[_]) -> Type Sum reduction.