From: Hugh Sasse Staff Elec Eng Date: 2003-12-04T00:13:26+09:00 Subject: Re: each_with_what_index? 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... Hugh