Hacker News new | ask | show | jobs
by cdcarter 5473 days ago
You can also use Enumerable#map and Enumerable#reduce, to use names that match the pattern (and #map is arguably more idiomatic than #collect).
1 comments

I finally got inject() when they added the reduce() alias.
The thing that confused me most about #inject was the term 'memo'...