From: Ruby Newbee Date: 2010-01-07T13:00:42+09:00 Subject: Re: group in the array On Thu, Jan 7, 2010 at 11:19 AM, Ruby Newbee wrote: > On Wed, Jan 6, 2010 at 11:20 PM, Robert Klemme > wrote: > >> >> inject >> http://ruby-doc.org/core-1.8.7/classes/Enumerable.html#M001147 >> > > Hi, > > I have checked the document for inject, but still can't understand for. > Can you help explain it with general words by a little samples? > Hi again, Now I checked some other help documents wigh google, and find Ruby's inject is similiar to Python's reduce, which is known by me. Thanks anyway.