From: trans Date: 2009-06-16T19:33:29+09:00 Subject: Re: each by arity On Jun 16, 2:10 am, Robert Klemme wrote: > Question is whether it is clever to duplicate all methods with another > one that has "_slice" appended to the name.  I personally favor the > approach with Enumerator, e.g. depending on version Not clever... facetious. Of course Enumerator is useful, and with 1.9 fairly elegant. But rather, the question is why we must do enum.each_slice(2).map {|a,b| ...} when enum.map {|a,b| ...} could be made to work. This is especially interesting b/c it seems the underlying implementation stands to be simpler and faster by doing so. T.