Closed kevinresol closed 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?
I didn't even realize that Accumulator is the exact thing I needed lol.
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
Manually triggered stream: A stream step is produced when the
step()
function is called