//>>built define("dojox/lang/functional/curry",["dijit","dojo","dojox","dojo/require!dojox/lang/functional/lambda"],function(_1,_2,_3){ _2.provide("dojox.lang.functional.curry"); _2.require("dojox.lang.functional.lambda"); (function(){ var df=_3.lang.functional,ap=Array.prototype; var _4=function(_5){ return function(){ var _6=_5.args.concat(ap.slice.call(arguments,0)); if(arguments.length+_5.args.length<_5.arity){ return _4({func:_5.func,arity:_5.arity,args:_6}); } return _5.func.apply(this,_6); }; }; _2.mixin(df,{curry:function(f,_7){ f=df.lambda(f); _7=typeof _7=="number"?_7:f.length; return _4({func:f,arity:_7,args:[]}); },arg:{},partial:function(f){ var a=arguments,l=a.length,_8=new Array(l-1),p=[],i=1,t; f=df.lambda(f); for(;i