摘要:
// v2.1
Object.prototype.unfold = function(incrementor) {
return [this].concat(
(function(next,act) {
return next == null ? [] : act(next);
})(incrementor(this),function(next) {
return next.unfold(incrementor)
})
)
};
阅读全文
posted @ 2011-09-14 14:49
ambar
阅读(1055)
评论(2)
推荐(0)

浙公网安备 33010602011771号