From: Robert Klemme Date: 2009-06-19T15:35:36+09:00 Subject: Re: each by arity 2009/6/19 trans : > Perhaps, but I must think about it some more. Presently one would do > (in 1.9): > >  coll.each_slice(n){ ... } >  coll.each_cons(n){ ... } > > If one wanted to map over that: > >  coll.map.each_slice(n){ ... } >  coll.map.each_cons(n){ ... } > > correct? For mapping in 1.9 I would do coll.each_slice(n).map{ ... } coll.each_cons(n).map{ ... } > So how do we best achieve "by arity" without stepping on present toes? I would simply stick with the existing behavior. :-) Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/