On Wed, Sep 10, 2008 at 7:53 PM, DanDiebolt.exe <dandiebolt / yahoo.com> wrot=
e:
> arity=3D2
> arity=3D-1

Where do you think the arity=3D-1 does come from? Does this ring a bell?

Actually each_with_index will use a block with *args calling each again.
Now that brings us to why your idea might not be as good as you
thaught at first sight:

[[:a, 42], [:b,43]].each{ |a,b| puts "#{a} =3D> #{b}" }

you see the arity of the block of each is indeed something which might
vary with the usecase.

HTH
Robert
--=20
C'est v=E9ritablement utile puisque c'est joli.

Antoine de Saint Exup=E9ry