Are there something like Python generators in Ruby?

Posted by bodacydo on Stack Overflow See other posts from Stack Overflow or by bodacydo
Published on 2010-03-23T23:58:48Z Indexed on 2010/03/24 0:03 UTC
Read the original article Hit count: 496

Filed under:

I am new to Ruby, is there a way to yield values from Ruby functions? If yes, how? If not, what are my options to write lazy code?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about lazy-evaluation