From: Dave Burt Date: 2006-03-21T21:23:50+09:00 Subject: Re: iterate chars in a string Mike Austin wrote: > Maybe a little off the topic, but I still think it would be pretty nifty > if calling enumerators without a block returned it's own enum_for(): > > "abcdefg".each_byte.each_slice(2).map do |a, b| > (a + b).chr > end I believe Ruby 1.9 (experimental) has this feature. Cheers, Dave