4 ms·
don't need the & before :+
by lg 17y ago
don't need the & before :+
- bodhi 17y agoHuh! learn something new everyday. From `ri Enumerable#inject` > If you specify a symbol ... each element will be passed to the named method of _memo_ Also, the `sum = ` part isn't really needed either. "Fore!"
- avdi 17y agoHeh. I love that you can publish dozens of technical language-tips articles in relative obscurity, then have one purely philosophical post shoot up reddit and HN - and all the language lawyers come out and quibble about the code samples! Not that I'm complaining, mind you, I actually learned something from this comment. Thanks!