From: Martin DeMello Date: 2002-11-26T21:06:21+09:00 Subject: Re: each_with_index & collect_with_index? dblack@candle.superlink.net wrote: > As for the second.... I recently appointed myself President of > Citizens for MWI [map_with_indices], Inc. (See > ). You may join the organization, > free of charge :-) Anyway, there's been a lot of talk of this at > various points; if you search for map_with_index and map_with_indices > on the ruby-talk archive, you'll see most of it. Matz has recently > indicated that he doesn't think there's a demand or need for it. I'm > still trying to keep the dream alive :-) How about a wiki page of uses for it? I keep thinking it's a nifty feature, and then not being able to think of where I'd actually use it. Okay, here's one... a.map_with_index {|e,i| "#{e}\t#{i.mod(4).zero? ? "\n":""}.join # 4 column printing martin