libperun

Class std.cont.Iterator

Synopsis

public abstract class Iterator< T >

Base class for iterators. Iterators are objects which allow scanning through a list of a certain type of object.

Fields

Constructors

Methods

public abstract bool end();

Returns true if we have reached the end of the iterator (there are no more elements to return).

public abstract T get();

Get the currently-selected element.

public abstract void next();

Select the next element.