Sha256: 90b9a2c13c2c1ae2cdb361aba09daaf91c6b12e0142d3c9db82226974ac1fb19

Contents?: true

Size: 118 Bytes

Versions: 49

Compression:

Stored size: 118 Bytes

Contents

class Array
  def sum
    total = 0
    self.each do |val|
      total += val
    end
    
    return total
  end
end 

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
volt-0.5.18 lib/volt/extra_core/array.rb
volt-0.5.17 lib/volt/extra_core/array.rb
volt-0.5.16 lib/volt/extra_core/array.rb
volt-0.5.15 lib/volt/extra_core/array.rb
volt-0.5.14 lib/volt/extra_core/array.rb
volt-0.5.13 lib/volt/extra_core/array.rb
volt-0.5.12 lib/volt/extra_core/array.rb
volt-0.5.11 lib/volt/extra_core/array.rb
volt-0.5.10 lib/volt/extra_core/array.rb
volt-0.5.9 lib/volt/extra_core/array.rb
volt-0.5.8 lib/volt/extra_core/array.rb
volt-0.5.7 lib/volt/extra_core/array.rb
volt-0.5.6 lib/volt/extra_core/array.rb
volt-0.5.4 lib/volt/extra_core/array.rb
volt-0.5.3 lib/volt/extra_core/array.rb
volt-0.5.2 lib/volt/extra_core/array.rb
volt-0.5.1 lib/volt/extra_core/array.rb
volt-0.5.0 lib/volt/extra_core/array.rb
volt-0.4.18 lib/volt/extra_core/array.rb
volt-0.4.17 lib/volt/extra_core/array.rb