How can I use a javascript generator with sloth.js?
<p>This question requires knowledge of the javascript <strong>sloth</strong> library located here: <a href="https://github.com/rfw/sloth.js" rel="nofollow">https://github.com/rfw/sloth.js</a></p>

<p>If I have this javascript generator.</p>

<pre><code>function fibonacci(){
  var fn1 = 1;
  var fn2 = 1;

  while (1){
    var current = fn2;
    fn2 = fn1;
    fn1 = fn1 + current;
    yield current;
  }
}
</code></pre>

<p>With the sloth library I can turn it into an iterator that is suitable for usage with the sloth library.</p>

<pre><code>var iter = sloth.iterNextable(fibonacci());
</code></pre>

<p>The sloth docs at the above URL show examples of using the take() function to take n elements from a sloth-friendly iterator:</p>

<pre><code>sloth.ify([1, 2, 3]).take(2).force();
[ 1, 2 ]
</code></pre>

<p>The question: how to get from my fibonacci() generator to a slothified object that I can call take() on?</p>
