YUI.add("arraylist",function(f,e){var d=f.Array,c=d.each,a;function b(g){if(g!==undefined){this._items=f.Lang.isArray(g)?g:d(g);}else{this._items=this._items||[];}}a={item:function(g){return this._items[g];},each:function(h,g){c(this._items,function(k,j){k=this.item(j);h.call(g||k,k,j,this);},this);return this;},some:function(h,g){return d.some(this._items,function(k,j){k=this.item(j);return h.call(g||k,k,j,this);},this);},indexOf:function(g){return d.indexOf(this._items,g);},size:function(){return this._items.length;},isEmpty:function(){return !this.size();},toJSON:function(){return this._items;}};a._item=a.item;f.mix(b.prototype,a);f.mix(b,{addMethod:function(g,h){h=d(h);c(h,function(i){g[i]=function(){var k=d(arguments,0,true),j=[];c(this._items,function(n,m){n=this._item(m);var l=n[i].apply(n,k);if(l!==undefined&&l!==n){j[m]=l;}},this);return j.length?j:this;};});}});f.ArrayList=b;},"@VERSION@",{"requires":["yui-base"]});