//>>built define("dojox/lang/functional/scan",["dojo/_base/kernel","dojo/_base/lang","./lambda"],function(_1,_2,df){ var _3={}; _2.mixin(df,{scanl:function(a,f,z,o){ if(typeof a=="string"){ a=a.split(""); } o=o||_1.global; f=df.lambda(f); var t,n,i; if(_2.isArray(a)){ t=new Array((n=a.length)+1); t[0]=z; for(i=0;i0;--i,z=f.call(o,z,a[i],i,a),t[i]=z){ } return t; },scanr1:function(a,f,o){ if(typeof a=="string"){ a=a.split(""); } o=o||_1.global; f=df.lambda(f); var n=a.length,t=new Array(n),z=a[n-1],i=n-1; t[i]=z; for(;i>0;--i,z=f.call(o,z,a[i],i,a),t[i]=z){ } return t; }}); });