4 5 6
# File 'lib/multi_measure/math_helpers.rb', line 4 def self.sum(a) a.inject(0){ |accum, i| accum + i } end