From: "David A. Black" Date: 2008-11-03T03:19:42+09:00 Subject: Re: ruby1.9: lazy versions of Enumerator#select and friends? Hi -- On Mon, 3 Nov 2008, James Gray wrote: > On Nov 2, 2008, at 10:58 AM, David A. Black wrote: > >>> My first question is, does ruby 1.9 have methods like this already, and >>> I've just overlooked them? If so, where should I be looking? >> >> It did have something like this, but not any more. I'm not sure they >> were identical to what you've written, but the basic idea of an >> enumerator that bundled itself with a block did exist in 1.9 for a >> while. > > I've seen you asking David, but did you ever get an answer of why this > feature was removed? If there's not a great reason, I sure wish we could > have it back. Shugo answered on ruby-core, mainly on the subject of efficiency, and also on the intention behind enumerators which he says doesn't include that kind of instantiation with block awareness. I guess I got used to how they behaved when they were block-aware, so it's been hard for me not to see that as how they're supposed to be. David -- Rails training from David A. Black and Ruby Power and Light: Intro to Ruby on Rails January 12-15 Fort Lauderdale, FL Advancing with Rails January 19-22 Fort Lauderdale, FL * * Co-taught with Patrick Ewing! See http://www.rubypal.com for details and updates!