Ruby

Enumerator.new

Posted on

I finally got around to checking out Ruby 1.9 the other day, and I liked what I saw.  In particular, the introduction of Fibers and the enhanced Enumerator class opens many new avenues for code architecture.  It is now a breeze to implement lazy evaluation.  More importantly, Fibers allow any internal iterator to be interrupted, […]