DEV Community

Discussion on: When Alternatives are Unhelpful: A Ruby Case Study

Collapse
 
shalvah profile image
Shalvah

Yes! inject vs reduce caught me out too. The first time I saw inject, I thought it was for an entirely different purpose (especially with the way it was explained). Took me a long time to realise it was the same. Alias methods can really be the devil.