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:
@@ -30,3 +30,5 @@ that is needed is
|
||||
my_hash.values.inject(:+)
|
||||
=> 8
|
||||
```
|
||||
|
||||
[source](http://stackoverflow.com/questions/1538789/how-to-sum-array-of-numbers-in-ruby)
|
||||
|
||||
Reference in New Issue
Block a user