infinite streams in ruby 1.9?

M

MonkeeSage

M

MenTaLguY

They're not gone in 1.9, just in their own module (continuation.rb).
Depending on what you mean by infinite streams (do you mean like an
infinite list of integers, or something else?), I'm sure a generator
would work.

A generator may also yield (no pun intended) better performance than
a generalized implicit continuation.

-mental
 
G

Giles Bowkett

They're not gone in 1.9, just in their own module (continuation.rb).

oh yeah! awesome.
Depending on what you mean by infinite streams (do you mean like an
infinite list of integers, or something else?), I'm sure a generator
would work.

yeah, it's a list of numbers, one ints one floats iirc, but if if I can just

require 'continuations'

then boom, I'm good.

--
Giles Bowkett

Podcast: http://hollywoodgrit.blogspot.com
Blog: http://gilesbowkett.blogspot.com
Portfolio: http://www.gilesgoatboy.org
Tumblelog: http://giles.tumblr.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top