I’m telling you, this language keeps surprising me. You’ll need Prototype for this one. Function.prototype.toSelfCurrying = function(n) { n = n || this.length; var method = this; return function() { if (arguments.length >= n) return method.apply(this, arguments); return method.curry.apply(arguments.callee, arguments); }; }; Make a simple function: var adder = function(a,b,c) { return a + b [...]
© The If Works. Powered by WordPress using the DePo Skinny Theme.