Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/makeki/array.rb

Instance Method Summary collapse

Instance Method Details

#msum(start = 0) ⇒ Object



2
3
4
5
# File 'lib/makeki/array.rb', line 2

def msum(start = 0)
    inject(start, &:+)
    
end