function curry(fn) { var args = Array.prototype.slice.call(arguments, 1) return function() { var innerArgs = A