摘要: Function.prototype.uncurrying = function() { var that = this; return function() { return Function.prototype.call.apply(that, arguments); } }; function 阅读全文
posted @ 2016-02-02 13:46 Coca-code 阅读(142) 评论(0) 推荐(0)
摘要: var currying = function(fn){ var args = []; return function(){ if(arguments.length === 0){ return fn.apply(this,args); }else{ [].push.apply(args,argum 阅读全文
posted @ 2016-02-02 13:17 Coca-code 阅读(220) 评论(0) 推荐(0)