From: Tim Bates Date: 2002-11-27T16:43:37+09:00 Subject: Re: each_with_index & collect_with_index? On Wed, 27 Nov 2002 04:21 pm, Alan Chen wrote: > Well, how about something like Regexp.last_match, where you can > make a call to retrieve the iteration data. > > ary.map { |e,f,g| > ei = Enumerable.iteration_info > #... > } This looks very promising, but doesn't allow you to determine which iterator we're talking about in the case of nested iterators. Tim Bates -- tim@bates.id.au