From: Martin DeMello Date: 2004-08-27T05:20:54+09:00 Subject: Re: python generators to ruby closures, help Michael Neumann wrote: > zuzu wrote: > > can anyone help me decode the following python example using > > generators into The Ruby Way using closures? > > I'm sure the Ruby version must be human-readable... maybe you can > describe in short words, what the Python example tries to achive? > > You might have a look at generator.rb which ships with Ruby and > implements generators or "streams" with continuations. And possibly at http://redshift.sourceforge.net/enum/pipe.html martin