From: Christian Neukirchen Date: 2005-08-05T00:13:52+09:00 Subject: Re: different order of parameters... Brian Schr�der writes: > On 03/08/05, Christian Neukirchen wrote: >> Just imagine: >> >> mystring.gsub(/bar/, with: "foo").tr "abc", to: "xyz" >> >> [1, 2, 3].inject 0, into: { |a,e| a + e } > > wouldn't > > [1,2,3].inject 0, :with { |a,e| a+e } > > make more sense. (Or even "using:"). I always thought of inject as > injecting a seed and a function into the enumerable. Except it's called inject:into: in Smalltalk. > Brian -- Christian Neukirchen http://chneukirchen.org