------art_5066_15363294.1180556783336
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On 5/30/07, Robert Dober <robert.dober / gmail.com> wrote:
>
> On 5/30/07, Brian Candler <B.Candler / pobox.com> wrote:
> > On Wed, May 30, 2007 at 07:50:05AM +0900, Logan Capaldo wrote:
> > > On 5/29/07, Robert Klemme <shortcutter / googlemail.com> wrote:
> > > >
> > > >
> > > >I was too fast (again).  Even though the return value is used, I'd
> rather
> > > >do
> > > >
> > > >n.times { x  ield x }
> > > >
> > > >than using #inject which does more than needed in this case.  :-)
> > > >
> > > >Now, did I look at all aspects...?
> > >
> > >
> > > Almost.
> > > you'd actually need
> > > n.times { x  ield x }
> > > x
> >
> > Almost almost :-)
> >
> > x  il
> > n.times { x  ield x }
> > x
> >
> >
> Robert was very quick indeed, he did not repeat the context of the
> expression which was
>
> def forgot_the_name(x,...)
>     n.times{ x  ield x }


      Still need x here

end
>
> Now it works ;)


No it doesn't ;)  n.times {  ... } returns n.

I still fail to see what the array was used for ;)
>
> Robert
>
>
> --
> You see things; and you say Why?
> But I dream things that never were; and I say Why not?
> -- George Bernard Shaw
>
>

------art_5066_15363294.1180556783336--