Y
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
chrismealy
5473 days ago
I finally got inject() when they added the reduce() alias.
link
cdcarter
5473 days ago
The thing that confused me most about #inject was the term 'memo'...
link