Mercurial > hg > audiodb
view bindings/as3/ext/asunit/util/ArrayIterator.as @ 765:337e72088f76
Fix for some sample bugs
a + b ? c : d does not do what I think it does. That bug mostly masked
a thorough logic error in building the table of counts of possible sequences;
there was too much cumulativeness.
There apparently remain problems
author | mas01cr |
---|---|
date | Thu, 02 Jun 2011 16:31:35 +0000 |
parents | 3a0b9700b3d2 |
children |
line wrap: on
line source
package asunit.util { import asunit.util.Iterator; [ExcludeClass] public class ArrayIterator implements Iterator { private var list:Array; private var index:Number = 0; public function ArrayIterator(list:Array) { this.list = list; } public function hasNext():Boolean { return list[index] != null; } public function next():Object { return list[index++]; } public function reset():void { index = 0; } } }