From: Dave Thomas Date: 2008-03-26T23:44:39+09:00 Subject: Re: The inject function On Mar 26, 2008, at 9:35 AM, Radosław Bułat wrote: >> Second, I need to reverse an array using only the inject command. So, >> something like above with the result [4,3,2,1] > > Use .reverse method. inject doesn't fit in. I'm guessing this is a homework assignment (otherwise why would inject be required). You can reverse using inject if the accumulator is an array... Dave