Streams in JavaScript

Time is but the stream I go a-fishing in. -Henry David Thoreau Recently I was rereading Structure and Interpretation of Computer Programs by Abelson and Sussman and was hooked by the section on streams. Streams allow one to reason about stateful phenomena while mitigating "some of the complexities of modeling…