From: Trans Date: 2007-11-11T07:05:20+09:00 Subject: Re: equivalent injecting implementations? On Nov 10, 11:45 am, Robert Klemme wrote: > Even if you do use it on an Array the two are not equivalent since the > second variant does not propagate the block result. The second variant > works only when you only modify something (say a Hash). Ah, that's what I was wondering about. It has to be inplace modifications to get the same output. Ok.Thanks. > I don't see the point in having the first one since it reimplements > #inject - but without the subtle specialty of different behavior when no > args are passed to it. Yea. it's minor, but some people like it. Actually just using #each is much faster than inject or injecting. So speed freaks, forget that silly inject! T.