Sha256: 2e8377a151a35d75de22c14dbf9b997fc1baec78db9afcb577f51d2ee1bdef1a
Contents?: true
Size: 248 Bytes
Versions: 1
Compression:
Stored size: 248 Bytes
Contents
# encoding: utf-8 # Enumerable module Enumerable # alias of Enumerable#reduce(&:+) # # === Example # # [*1..5].reduce(&:+) # => 15 # [*'a'..'z'].reduce(&:+) # => 'abcdefghijklmnopqrstuvwxyz' # def sum reduce(&:+) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tbpgr_utils-0.0.151 | lib/open_classes/enumerable/sum.rb |