Sha256: 1193df04fbba95aeafa43e5ff566cf1f55ceda2323079eb525988117b8cc4243
Contents?: true
Size: 237 Bytes
Versions: 25
Compression:
Stored size: 237 Bytes
Contents
class Array def sum total = 0 self.each do |val| total += val end return total end def deep_cur new_array = [] each do |item| new_array << item.deep_cur end return new_array end end
Version data entries
25 entries across 25 versions & 1 rubygems