1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-05 08:08:02 +00:00

Update summing-collections with a link to my source.

This commit is contained in:
jbranchaud
2015-02-06 22:09:06 -06:00
parent c482ae4d85
commit 9b22766def

View File

@@ -30,3 +30,5 @@ that is needed is
my_hash.values.inject(:+) my_hash.values.inject(:+)
=> 8 => 8
``` ```
[source](http://stackoverflow.com/questions/1538789/how-to-sum-array-of-numbers-in-ruby)