From: "T. Onoma" Date: 2003-12-04T03:41:23+09:00 Subject: Re: each_with_what_index? On Wednesday 03 December 2003 04:13 pm, Hugh Sasse Staff Elec Eng wrote: > On Wed, 3 Dec 2003, T. Onoma wrote: > > Saying that there's "absolutely nothing unintutive about that" is a real > > stretch. Obviously, I have asked for certain indexes [1..-1], but we know > > that #[ ] is really just a form of slice, so what we get is a new array, > > thus reindexed form [0..a.length-2]. It's understandable, but I sure > > wouldn't call it intuitive. > > Suppose if each_with_index allowed a range parameter > a.each_with_index(1...a.size) {|t,i|...} > Would that be worth an RCR? It looks sort of natural to me, but... But? Seems good to me too, as far as I know each_with_index doesn't currently take any parameters. T.