ap(function(value) {
    return stream.HALT
})

halted.map(function() {
    // never runs
})
</code></pre>
<hr>
<h3 id="combining-streams"><a href="#combining-streams">Combining streams</a></h3>
<p>Streams can depend on more than one parent stream. These kinds of streams can be created via <code>stream.merge()</code></p>
<pre><code class="lang-javascript">var a = stream(&quot;hello&quot;)
var b = stream(&quot;world&quot;)

var greeting = stream.merge([a, b]).map(function(values) {
    return values.join(&qu