From: William Rutiser Date: 2011-01-13T23:11:30+09:00 Subject: Re: What is the difference between inject and reduce methods Rick DeNatale wrote: > On Thu, Jan 13, 2011 at 6:30 AM, Josh Cheek wrote: > > >> They are the same, I think the names are just to make people from different >> languages feel at home. I think "inject" is from Smalltalk, and "reduce" is >> from Common Lisp, and IIRC "fold" is from Scheme and Haskell. >> >> Interestingly, at the last RubyConf, Aaron Patterson and Rein Henrichs were >> giving their presentations simultaneously, in different rooms, and both of >> them criticized the use of this method :P >> >> > > http://talklikeaduck.denhaven2.com/2010/11/26/how-arlo-got-injected-into-ruby > > Note that Iverson's notation in "A Programming Language"(Wiley, 1962) contained "reduction" operations to extend an operation such as multiplication over all components of a vector or matrix. APL programmers commonly pronounce an expression like "+/v" as "plus reduce v". Thanks for the Alice's Restaurant connection. -- Bill