function sum( ns: number[]) { let total = 0; for (let n of ns) { total += n; } return total; } export { sum }