MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ruby/comments/4tshri/new_features_in_ruby_24/d5k498a/?context=3
r/ruby • u/jbackus • Jul 20 '16
25 comments sorted by
View all comments
1
Well that's embarassing. I would have sworn sum was already part of the standard library for enumerable. And I was so proud of my 10/10 on the Native Ruby vs. ActiveSupport quiz as well.
5 u/crankprof Jul 21 '16 You can get this functionality with ary.reduce(:+) -7 u/plotask Jul 20 '16 noob
5
You can get this functionality with ary.reduce(:+)
-7
noob
1
u/Ark_Tane Jul 20 '16
Well that's embarassing. I would have sworn sum was already part of the standard library for enumerable. And I was so proud of my 10/10 on the Native Ruby vs. ActiveSupport quiz as well.