[ANN] Future::Enumerator: Ruby 1.9's enumerators backported to Ruby 1.8

Moin.

I couldn't wait to try out the new enumerator returning no-block semantics of .each_with_index, .each_byte and so on so I backported it to Ruby 1.8. Nothing too spectacular.

I've attached the (very small) library to this mail. I might release it on RubyForge as a Gem if there really is demand for that.

Kind regards,
Florian Gross

future-enumerator.rb (3.08 KB)

···

--
http://flgr.0x42.net/

Very cool Florian. I really like this behavior myself.

Cheers-
-Ezra

···

On Apr 8, 2006, at 3:32 PM, Florian Groß wrote:

<future-enumerator.rb>