haxetink / tink_streams

Streams from the future. With lasers, of course ... whoaaaaa!!!!
The Unlicense
12 stars 9 forks source link

Add Manually #5

Closed kevinresol closed 8 years ago

kevinresol commented 8 years ago

Manually triggered stream: A stream step is produced when the step() function is called

back2dos commented 8 years ago

This looks an awful lot like Accumulator except that accumulator deals with termination - so that if you finish consuming the stream it can't come alive again. Or maybe I'm missing something?

kevinresol commented 8 years ago

I didn't even realize that Accumulator is the exact thing I needed lol.

back2dos commented 8 years ago

But it's reassuring to see that except for termination and List vs Array it's the very same code. If something is reproduced so closely, there's some hope it wasn't such a stupid idea after all :D