pkrumins/node-lazy — Issue #14: take(x) 'takes' nothing when emitted exactly x elements
Author: salty-horse
Created: 2012-01-24 22:39:58+00:00
State: open

This is a modified example from the readme.txt:

```javascript
var Lazy = require('lazy');

var lazy = new Lazy;
lazy
.take(4)
.join(function (xs) {
console.log(xs);
});

// OK when there are five elements. Prints nothing when there are 4
[1,2,3,4].forEach(function (x) {
lazy.emit('data', x);
});
```