From: Avdi Grimm Date: 2012-06-21T13:28:00+09:00 Subject: Re: Benchmark obsession? --f46d043c8060b29ad004c2f3f0f2 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Jun 20, 2012 at 9:07 PM, Sam Duncan wrote: > Is that basically the same thing wrapped in another method so that counter > and o are yielded to a block? > Yes, and it's part of Enumerable: http://ruby-doc.org/core-1.9.3/Enumerable.html#method-i-each_with_object -- Avdi --f46d043c8060b29ad004c2f3f0f2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, Jun 20, 2012 at 9:07 PM, Sam Duncan <sduncan@wetafx.co.nz= > wrote:
=20 =20 =20
Is that = basically the same thing wrapped in another method so that counter and o are yielded to a block?

Yes, and it's part of Enumerable:= =A0http://ruby-doc.org/core-1.9.3/Enumerable.html#method-i-each_w= ith_object

--
Avdi
--f46d043c8060b29ad004c2f3f0f2--