code: function MinFunction(win) { 
    var self = this, r;
    self.win = win;
    self.name = "min";
    self.type = "ordered_reverse";
    self.init = function() { r = null; };
    self.accumulate = function(v) { if (v == null) { return; } if (r == null) { r = v; return; } r = (v < r) ? v : r; };
    self.compensate = function(v) { r = self.win.min(); };
    self.emit = function()  { return r; };
    self.make = function(win) { return new MinFunction(win); };
  }
docs: Get the smallest of all the things