Given the following code using a fresh checkout of the repository on node v0.10.26:
var windows = eep.EventWorld.make().windows();
var win = windows.sliding(eep.Stats.min, 3);
win = windows.ordered(win);
win.on('emit', function(value) {
console.log('min:' + value);
});
var values = [1,2,3,4,5,6];
for (var i in values) {
win.enqueue(values[i]);
}
I get:
While I would have expected:
Replacing Stats.min by Stats.max I get the expected behavior, so I suspect there's an issue with Stats.min.