Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
## Code Function.prototype.curry = function() { var func = this, a = Array.prototype.slice.call(arguments, 0); return function() { var a_len = a.length, length = arguments.length; while (length--) a[a_len + length] = arguments[length]; return func.apply(this, a); } }; ## Example function xy(x, y) { return x+y; } var x = xy.curry(7); x(3); // 10
This paste will be private.
From the Design Piracy series on my blog: