Object
# File lib/classifier-reborn/extensions/vector.rb, line 9 def sum(identity = 0, &block) return identity unless size > 0 if block_given? map(&block).sum else reduce(:+) || 0 end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.