From: Francis Cianfrocca Date: 2006-05-21T14:14:38+09:00 Subject: Re: rubynuby - confused by method name "inject" ------=_Part_180084_2386170.1148188475750 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I think the name originally came from Smalltalk. On 5/20/06, Jeff Pritchard wrote: > > Can anybody explain to me how the Enumberable#inject method is > "injecting" something into something? I find it very difficult remember > method names when I don't "get" them. So far in Ruby, "inject" takes > the cake for least understandable method name (with my own particular > convoluted gray matter). > > Can somebody give some examples of its use and state in words how it is > "injecting" something into something? > > thanks, > jp > > P.S. > If anybody wants to take a stab at "collect", that would be welcome > also. > > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_180084_2386170.1148188475750--