code: function(array, fun, init) {
        var ret = [];
        var acc = init;
  
        _.each(array, function(v,k) {
          acc = fun(acc, array[k]);
          ret.push(acc);
        });
  
        return ret;
      }
docs: Returns an array of each intermediate stage of a call to a `reduce`-like function.