logoalt Hacker News

diegof79yesterday at 10:57 PM0 repliesview on HN

The name inject and the argument order comes from Smalltalk (Ruby is heavily inspired by it). In Smalltalk arguments are part of the message name:

collection inject: aValue into: aBlock