function func() { var a = arguments; return a.length > 1 ? a[0] + a[1] : function(x) { return a[0] + x; }; }