ArrayIterator
final class ArrayIterator<Type>(o:Array<Type>) < Iterator<Type>
Iterator over an Array.
- o: Container.
Factory Functions
Name | Description |
---|---|
ArrayIterator | Create a ArrayIterator. |
Member Variables
Name | Description |
---|---|
o:Array<Type> | Container. |
i:Integer | Current index into the vector. |
Member Functions
Name | Description |
---|---|
hasNext | Is there a next element? |
next | Get the next element. |
Factory Function Details
function ArrayIterator<Type>(o:Array<Type>) -> ArrayIterator<Type>
Create a ArrayIterator.
Member Function Details
hasNext
function hasNext() -> Boolean
Is there a next element?
next
function next() -> Type
Get the next element.